Files
t3code/apps
Ben DavisandClaude Fable 5 a2f6f78c6a fix: make migrations 036/037 idempotent like 035
036 and 037 issued bare ALTER TABLE ... ADD COLUMN statements, which
SQLite rejects with "duplicate column name" when the column already
exists (e.g. a database touched by a divergent branch or a restored
backup whose tracking table lags the schema). Mirror 035's PRAGMA
table_info guard so re-running either migration is a no-op.

Each test file gains an idempotence case that re-applies the
migration effect directly against the already-migrated shared
in-memory database — going through runMigrations twice would be
short-circuited by the migrator's tracking table and prove nothing.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-07-27 15:54:01 -07:00
..