fix(db): restore 0039 migration journal reference#503
Conversation
Greptile SummaryThis PR fixes a metadata drift in Drizzle's migration journal by restoring the entry for migration index 39 from the non-existent tag
Confidence Score: 5/5Safe to merge — single-field metadata fix with no schema changes and a clear paper trail in git history. The change is minimal (one string value in a JSON file), well-justified by the git history showing the original correct tag, and directly unblocks Drizzle's migration runner. The SQL file it now points to is correct and already on disk. There are no logic, security, or data-integrity concerns introduced by this PR. No files require special attention. As a follow-up outside this PR, Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Drizzle migration runner] --> B{Read _journal.json}
B --> C[Look for idx=39 tag]
C -- "Before PR\n0039_bumpy_vertigo" --> D[❌ No matching .sql file\nMigration lookup fails]
C -- "After PR\n0039_quiet_franklin_storm" --> E[✅ Matches 0039_quiet_franklin_storm.sql\nMigration runs successfully]
E --> F[Apply: ADD enum value 'referral_legacy'\n+ ADD COLUMN is_legacy]
Reviews (1): Last reviewed commit: "fix(db): restore 0039 migration journal ..." | Re-trigger Greptile |
Summary
0039_quiet_franklin_storm, which matches the checked-in SQL migration fileValidation
bun installbun run --cwd packages/internal db:e2e:downbun run --cwd packages/internal db:e2e:setupbun run --cwd packages/internal db:e2e:downNotes
0039_bumpy_vertigoappears to have been introduced later than the original0039_quiet_franklin_stormmigration and did not correspond to any file on disk.