Skip to content

fix(db): renumber note-taker migration 94→95 (collided with voice-profile 94) - #185

Merged
vjvarada merged 1 commit into
mainfrom
hotfix-migration-94-collision
Jul 23, 2026
Merged

fix(db): renumber note-taker migration 94→95 (collided with voice-profile 94)#185
vjvarada merged 1 commit into
mainfrom
hotfix-migration-94-collision

Conversation

@vjvarada

Copy link
Copy Markdown
Contributor

Incident

main is red: two migrations both numbered 94

test_migration_prefixes fails → the unit-test gate is red → all deploys are blocked.

Fix

Renumber the not-yet-applied one: 94_note_taker.sql95_note_taker.sql. Zero data impact — apply_migrations.sh replays every numbered file idempotently on each deploy (no "last applied" tracking; ordering is the only thing the number controls), and note-taker's tables were never created on prod. The already-applied voice-profile keeps 94. Reference comments in notes/core.py, acb_graph/models.py, and the note-taker spec updated to match.

Same class as the #168#170 collision; the guard did its job, this clears it.

Verify

test_migration_prefixes passes locally.

🤖 Generated with Claude Code

…file 94)

Two migrations both landed as 94: 94_email_voice_profile.sql (#176) and
94_note_taker.sql (#181). #176 merged and DEPLOYED first — email_voice_profiles
exists on prod — so it keeps 94; #181's note-taker deploy failed on the
prefix-uniqueness guard and its tables were never applied, so it renumbers to
95 with zero data impact (apply_migrations replays every numbered file
idempotently on each deploy — ordering only). Reference comments in
notes/core.py, acb_graph/models.py, and the note-taker spec updated to match.

Unblocks main (the collision was failing the unit-test gate and blocking all
deploys).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@vjvarada
vjvarada merged commit f7407c0 into main Jul 23, 2026
3 checks passed
@vjvarada
vjvarada deleted the hotfix-migration-94-collision branch July 23, 2026 04:38
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