Skip to content

Commit 27e2ffd

Browse files
authored
fix(database): migrations run again: the notifications migration moves to 0033, after #358's 0032 (#395)
Main doesn't migrate: #358 and #375 both added a migration numbered 0032 (`0032_pending_email_authority.sql` and `0032_notifications.sql`). They merged minutes apart, so neither branch's CI saw the other. `sqlx migrate run` now stops with `duplicate key value violates unique constraint "_sqlx_migrations_pkey"`, so a fresh database, and any deploy of main, fails at the migrate step. This renames the notifications migration to `0033_notifications.sql`. Its contents are unchanged. A database that has #358's 0032 applied gets the notifications table as 0033. Proof: `just db test` on a fresh scratch cluster runs every migration, then 385/385 tests and the query cache check pass. On main, the same `sqlx migrate run` fails with the error above. > [!NOTE] > Written by Claude Opus 5.5 in Claude Code (via T3 Code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent 1b1084c commit 27e2ffd

1 file changed

File tree

File renamed without changes.

0 commit comments

Comments
 (0)