refactor(db): squash migrations into a single baseline #91
Reference in New Issue
Block a user
Delete Branch "feature/squash-migrations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Squash the incremental goose migrations (
00001–00014) into a single00001_baseline.sql. Migrations-only change — no schema or behaviour change.How it was built / verified
00001–00014set (pg_dump), wrapped in goose.pg_dump-diffed against the old set → identical.00006) is carried over by hand (a schema-only dump omits it).docs/ARCHITECTURE.md.Deploy note (the "drop db")
This breaks goose's version continuity (the contour DB is at v14; the baseline is v1). After merge the test contour DB must be wiped once —
DROP SCHEMA backend CASCADE+ restartscrabble-backend— so goose re-applies the single baseline fresh. No production data exists. I'll do this once the deploy lands.