Skip to content

PhoenixKit 1.7.58: UUID defaults fixed on every table

PhoenixKit 1.7.58 adds the V75 migration, which repairs the uuid column defaults left behind by the earlier UUID work.

On 27 tables, renaming columns in V72 had dropped the default, so rows inserted with raw SQL got no UUID from the database; Ecto still filled it in from the app. V75 sets DEFAULT uuid_generate_v7() on them. Four tables that generated random UUIDv4 values with gen_random_uuid() now use UUIDv7 as well. The unused phoenix_kit_id_seq sequence is dropped.

Upgrading

Run mix phoenix_kit.update to apply V75.

Full release notes: PhoenixKit 1.7.58

1.7.58 · 3 March 2026

  • Add V75 migration: fix uuid column defaults and cleanup
    • Set DEFAULT uuid_generate_v7() on 27 tables missing it (Category A tables — V72 rename dropped old sequence DEFAULT)
    • Fix 4 tables using gen_random_uuid() (UUIDv4) → uuid_generate_v7() (UUIDv7)
    • Drop orphaned phoenix_kit_id_seq sequence

PhoenixKit 1.7.58. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.