Skip to content

PhoenixKit 1.7.54: Primary key columns renamed to uuid on 30 tables

PhoenixKit 1.7.54 continues the move to UUIDs in the database. Migration V72 renames the primary key column id to uuid on 30 tables, so the column now has the same name as the field in the code.

The tables are those of comments, posts, storage (buckets, files, file instances and locations, dimensions), tickets, scheduled jobs and user connections, follows and blocks. A column rename in PostgreSQL changes only metadata, so it runs at once, and the foreign keys that point at these columns follow the rename. V72 also adds four foreign keys that were missing: comments, comment likes and comment dislikes now point at the user who made them and are deleted with that user; a scheduled job loses only its creator when that user is deleted. Every step checks first whether it has already been done.

In admin tables, the row buttons such as View and Edit now show their label on phones instead of an icon only.

Upgrading

Run mix phoenix_kit.update for V72. Code of your own that queries these tables by the id column must use uuid.

Full release notes: PhoenixKit 1.7.54

1.7.54 · 3 March 2026

  • Add V72 migration: rename PK column id → uuid on 30 Category A tables (metadata-only, instant)
  • Add 4 missing FK constraints: comments.user_uuid, comments_dislikes.user_uuid, comments_likes.user_uuid, scheduled_jobs.created_by_uuid
  • Remove source: :id mapping from 29 Category A Ecto schemas — DB column now matches field name directly

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