Commit e0a7c68
Cloud carried 175 migration stamps against 173 files on master. The two extra:
20260726013256 repair_migration_ledger_542
20260726015858 repair_migration_ledger_543
Both were applied through the MCP `apply_migration` tool while #542 and #543
were being worked, but neither committed a matching file. Each repair correctly
realigned its own migration's stamp — and then became an orphan itself, because
`apply_migration` stamps a FRESH timestamp rather than the filename. One orphan
traded for another; the ledger never actually converged.
Committing the files is what closes the loop, which is why #541's own repair
shipped as 20260726005843_repair_migration_ledger_541.sql.
The SQL in both files is reproduced verbatim from
`supabase_migrations.schema_migrations.statements` for the corresponding
version; only the explanatory headers were added. Nothing is re-applied to
cloud — the statements have already run there, and this commit exists so the
repo can account for them.
Both are idempotent: on a fresh `supabase db reset` the UPDATEs match nothing,
because the CLI stamps 20260726100000 / 20260726110000 from the filenames in
the first place.
Ledger after this commit: 175 files, 175 stamps, zero pending, zero orphans —
verified by diffing supabase/migrations/ against schema_migrations.
This is the condition `npm run verify:cloud` (#541) reports as "cloud carries no
migration stamp that matches no repo file", and is how it was caught, hours
after that check shipped.
Gates: test:unit 411 passed, typecheck clean, build succeeds.
Refs #540, #541, #542, #543
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HPFyHjqzSR6Ku1gyWjeQie
1 parent 2e4678e commit e0a7c68
2 files changed
Lines changed: 57 additions & 0 deletions
File tree
- supabase/migrations
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments