Skip to content

PhoenixKit 1.7.55: Scheduled jobs and the database browser after the UUID rename

PhoenixKit 1.7.55 fixes scheduled jobs, whose schema still read their key from an id column that the V72 migration had renamed to uuid. They now use the uuid column directly.

The database browser no longer assumes every table has an id column. It looks up each table’s real primary key when opening a row, ordering a preview and reporting live changes. Sync does the same when it reads and writes records between sites.

The new V73 migration prepares the next step of the UUID move: it marks seven uuid columns as required, adds unique indexes on three tables and renames four indexes to match the renamed columns.

Upgrading

Run mix phoenix_kit.update to apply V73.

Full release notes: PhoenixKit 1.7.55

1.7.55 · 3 March 2026

  • Fix scheduled_job.ex source: :id regression — PR #383 reintroduced mapping to dropped DB column
  • Add V73 migration: pre-drop prerequisites for Category B UUID migration
    • SET NOT NULL on 7 uuid columns (ai_endpoints, ai_prompts, consent_logs, payment_methods, role_permissions, subscription_types, sync_connections)
    • CREATE UNIQUE INDEX on 3 tables (consent_logs, payment_methods, subscription_types)
    • ALTER INDEX RENAME on 4 indexes to match renamed columns (post_tag_assignments, post_group_assignments, post_media, file_instances)
  • Add RepoHelper.get_pk_column/1 — queries pg_index for PK column name, falls back to "id"
  • Fix DB explorer to use dynamic PK column in fetch_row, table_preview, and notify trigger
  • Fix Sync API controller to use dynamic PK column in fetch_filtered_records and build_where_clause
  • Fix Sync connection notifier to use dynamic PK column in insert_record and build_update_clause
  • Update 4 schema constraint names to match V72 column renames (post_id → post_uuid, file_id → file_uuid)
  • Remove dead :user_id from OAuth replace_all_except list

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