PhoenixKit 2.29.1: Update the database without starting the app
PhoenixKit 2.29.1 helps apps that cannot start because the database is missing a column the new code expects, the error 42703 (undefined_column).
A full mix phoenix_kit.update starts the app first. When the app’s own startup code reads a table that a release adds a column to, the boot fails, and the update that would add the column never runs. The new mix phoenix_kit.update --no-start only generates the migration and applies it with ecto.migrate, which starts the database connection alone. Configuration repair, asset rebuilds and module migrations are skipped and reported. Run the full update again once the app boots.
mix phoenix_kit.status now mentions --no-start when the database is behind the code, and mix phoenix_kit.doctor explains a 42703 boot failure instead of showing it raw.
Full release notes: PhoenixKit 2.29.1
2.29.1 · 17 September 2026
Added
mix phoenix_kit.update --no-start— migrate the database without starting the host application. A column-adding release creates a deadlock on any host whose supervision tree queries at init: the newly compiled schema module selects a column the database has not got, so theapp.startthe full update needs brings the boot down withERROR 42703 (undefined_column), and the updater that would add the column never runs. (update_mode: truestands PhoenixKit’s own supervisor down, but it has no say over the host’s children.) The flag runs the two steps that need no application — generate the chain step-up migration (phoenix_kit.gen.migrationreads the version off the migration filenames, never the database) and apply it withecto.migrate, which starts the repo alone. Configuration repair, asset rebuild and module migrations are skipped and reported; re-run the full update once the host boots again.
Changed
mix phoenix_kit.statusnames the way out when the core schema is behind the code. Its bareNext: mix phoenix_kit.updatewalked hosts straight into the deadlock above; it now points at--no-startbeside it. Core gap only — a module-only gap leavesphoenix_kit_usersintact, which is what hosts actually query at boot.mix phoenix_kit.doctorexplains a 42703 boot failure instead of surfacing it raw as an application bug, then re-raises unchanged so the exit status and stacktrace are untouched.
PhoenixKit 2.29.1. Install or update: {:phoenix_kit, "~> 2.29"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.