Skip to content

fix(db): make db-migrations CI green on cold replay - #37

Merged
lauurnce merged 8 commits into
mainfrom
fix/db-migrations-green
Aug 25, 2026
Merged

lauurnce merged 8 commits into
mainfrom
fix/db-migrations-green

Conversation

@lauurnce

Copy link
Copy Markdown
Owner

Backfills the rows that only ever existed as hand-made production data and that 006, 007, and the June 23 subject seed silently depend on:

  • years …0001 (1st Year) / …0002 (2nd Year) — never seeded by any migration; June 23 seed FK-violates on year …0002
  • COBOL subject 85eaf374… and World Literature 045d09d8… — referenced by hardcoded UUID in 006/007 module INSERTs → FK violations on a fresh replay

New migration 005a_seed_missing_years_and_module_subjects.sql is pure on conflict (id) do nothing, so it is a no-op against production. 006/007 stay byte-identical per the workflow's apply-unchanged contract.

Plan + iteration log: docs/superpowers/plans/2026-08-25-db-migrations-green.md

@vercel

vercel Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
survival-kit-app Ready Ready Preview Aug 25, 2026 4:44pm

The year_label/subject_title drift warning predated the cold-replay
repair that adds both columns in 20260623000003. Rewritten as resolved
with the failure mode kept as a historical check.
@lauurnce
lauurnce merged commit 7cabc45 into main Aug 25, 2026
4 checks passed

This branch was successfully deployed

1 active deployment
Preview — f3c8cd87 Deployed Aug 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant