Skip to content

PhoenixKit 1.7.41: UUID foreign keys no longer fail on AI endpoints

PhoenixKit 1.7.41 fixes the UUID migrations on databases where they stopped with an invalid_foreign_key error, for example on phoenix_kit_ai_endpoints.

A foreign key needs a unique index on the column it points to, and some uuid columns had none. The migrations now create those indexes before adding the foreign keys. New migration V57 runs the UUID foreign key steps of V56 again, to add columns that installs which ran an earlier V56 are missing, such as role_uuid on role permissions. On a database where V56 did everything, it changes nothing.

mix phoenix_kit.update no longer writes a second migration file for the same version range; it tells you the file already exists. In the Languages module, the languages listed under each country are now its official languages instead of every language spoken there.

Upgrading

Run mix phoenix_kit.update for V57.

Full release notes: PhoenixKit 1.7.41

1.7.41 · 16 February 2026

  • Fix FK constraint creation crash when UUID target tables lack unique indexes
    • Ensure unique indexes on all FK-target uuid columns before adding FK constraints
    • Fixes invalid_foreign_key error on phoenix_kit_ai_endpoints and other tables

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