PhoenixKit 1.7.42: UUID migrations that are safer to run again
PhoenixKit 1.7.42 changes nothing visible on a running site. It makes the UUID column steps of migration V56 sturdier when they run on a database that already has some of the columns.
Adding and dropping the UUID foreign key columns now uses PostgreSQL’s own ADD COLUMN IF NOT EXISTS and DROP COLUMN IF EXISTS, instead of a separate check before each step. Running the migration again, or on a partly migrated database, skips what is already there.
Full release notes: PhoenixKit 1.7.42
1.7.42 · 17 February 2026
- Use PostgreSQL IF NOT EXISTS / IF EXISTS for UUID column operations
- Replace manual column_exists? checks with native DDL guards in V56 and UUIDFKColumns
- Makes migrations more robust and idempotent
PhoenixKit 1.7.42. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.