Skip to content

Add missing migration snapshots and fix journal idx ordering#301

Merged
jakebromberg merged 1 commit intomainfrom
bugfix/migration-snapshots
Apr 5, 2026
Merged

Add missing migration snapshots and fix journal idx ordering#301
jakebromberg merged 1 commit intomainfrom
bugfix/migration-snapshots

Conversation

@jakebromberg
Copy link
Copy Markdown
Member

Summary

  • Add snapshot files for migrations 0032, 0033, 0034 (SQL files and journal entries existed but snapshots were missing)
  • Fix duplicate idx: 27 in journal (0026_capabilities_column and 0027_cron_job_tracking both had idx 27)
  • Reorder journal entries by when timestamp with sequential idx values

Closes #296

Test plan

  • Verify drizzle-kit generate no longer produces a spurious migration
  • Run npm run drizzle:migrate against a fresh database to verify migration chain is intact

@jakebromberg jakebromberg force-pushed the bugfix/migration-snapshots branch from 47d43a5 to 11ef133 Compare April 5, 2026 18:32
Migrations 0032-0034 had SQL files and journal entries but no snapshot files, which would cause drizzle-kit generate to compute incorrect diffs. Added snapshots using the current schema state (0034) as the authoritative reference.

Also fixed journal ordering: 0026_capabilities_column was appended after 0030 with a duplicate idx 27. Reordered all entries from idx 24+ by timestamp and assigned sequential idx values.
@jakebromberg jakebromberg force-pushed the bugfix/migration-snapshots branch from 11ef133 to 5f6412f Compare April 5, 2026 20:07
@jakebromberg jakebromberg merged commit 518168c into main Apr 5, 2026
4 checks passed
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.

Bug: missing migration snapshots for 0032-0034 and duplicate journal idx

1 participant