Remove backwards compat code: no installed base pre-1.0
All checks were successful
check / check (push) Successful in 1m49s
All checks were successful
check / check (push) Successful in 1m49s
- Simplify bootstrapMigrationsTable to just check table existence and apply 000.sql if missing — no legacy DB detection - Remove ensureBootstrapVersionRecorded (legacy backfill path) - Remove applyBootstrapMigration (separate helper, now inlined) - Remove TestBootstrapMigrationsTable_ExistingTableBackwardsCompat - Simplify 000.sql header comment
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
-- Migration 000: Schema migrations tracking table
|
||||
-- This must be the first migration applied. The bootstrap logic in
|
||||
-- database.go applies it directly (bypassing the normal migration
|
||||
-- loop) when the schema_migrations table does not yet exist.
|
||||
-- Applied as a bootstrap step before the normal migration loop.
|
||||
|
||||
CREATE TABLE IF NOT EXISTS schema_migrations (
|
||||
version TEXT PRIMARY KEY,
|
||||
|
||||
Reference in New Issue
Block a user