You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
(UX) Migration messages push users toward --force and deleting the database #5748
Issue for tracking general DB migration UX improvements gathered from the latest v4.0.0 hackathon.
Generic abort line.create-migration always ends with aborted. Use --force to ignore warnings, whether the warning is a caveat (unique index on an empty table) or a table drop. The warnings are already tagged destructive in migration.dart, and the "table will be deleted and recreated" text never says rows are lost.
Mismatch warning reads backwards. With note_title_idx in the DB and the target wanting note_title_body_idx, the server prints Missing Index "note_title_idx".
Hint omits the usual fix. It lists serverpod generate, --apply-migrations and repair migrations, but not serverpod create-migration.
No notice on hot reload. Changing a table model while serverpod start runs reloads fine; the failure only appears on the next cold start.
The "Mismatch warning reads backwards" point has a second half: the comparison only walks the live table, so a column, index or foreign key the models declare but the database lacks is never reported at all. In the example above, note_title_body_idx never appears in the output. Details and a reproduction in #5797.
Activity
BiAksoy commentedon Sep 29, 2026
The "Mismatch warning reads backwards" point has a second half: the comparison only walks the live table, so a column, index or foreign key the models declare but the database lacks is never reported at all. In the example above,
note_title_body_idxnever appears in the output. Details and a reproduction in #5797.