chore(db): resync stale EF ModelSnapshot + fix fresh-DB schema gap #16
Reference in New Issue
Block a user
Delete Branch "chore/resync-ef-snapshot"
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?
Backlog item 1. Resyncs the empty/stale EF ModelSnapshot via a no-op migration (verified zero side effects on both a fresh DB and a copy of the dev DB). That verification surfaced a real bug: ad-hoc EnsureColumn/EnsureMySqlColumn calls no-op on a genuinely fresh database, so a brand-new deployment first boot would be missing dozens of columns until restarted. Fixed by re-running the same reconciliation once more right after Migrate() succeeds. 169/169 tests green; verified live against both a fresh empty DB and existing dev DB copy.