# `PhoenixKit.Migrations.Postgres.V81`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.87/lib/phoenix_kit/migrations/postgres/v81.ex#L1)

V81: Add position column to entity_data for manual reordering support.

Adds an integer `position` column to `phoenix_kit_entity_data` that enables
manual record ordering per entity. Auto-populated for existing records based
on creation date (earliest = 1). New records auto-populate via application code.

The entity's `settings` JSONB stores a `sort_mode` key ("auto" or "manual")
that controls whether queries sort by `date_created` or `position`.

# `down`

# `up`

---

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