PhoenixKit.Migrations.Postgres.V81 (phoenix_kit v1.7.71)

Copy Markdown View Source

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.

Summary

Functions

down(opts)

up(opts)