Remove backwards compat code: no installed base pre-1.0
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:
clawbot
2026-03-17 19:47:59 -07:00
parent 3d92f2625b
commit 8b6aa74951
3 changed files with 2 additions and 103 deletions

View File

@@ -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,