# `mix ash_onetime.gen.logical_partitions`
[🔗](https://github.com/baselabs/ash_onetime/blob/v1.5.0/lib/mix/tasks/ash_onetime.gen.logical_partitions.ex#L1)

Generates the reversible logical-partition upgrade for an existing `ash_onetime` install.

    mix ash_onetime.gen.logical_partitions --repo MyApp.Repo

Existing claims and payloads are backfilled into the `global` partition. The generated down
migration refuses while any non-global row exists, so rollback cannot merge distinct locator
authorities.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
