[WIP] Fix database migration error due to multiple heads#22
Merged
Betanu701 merged 2 commits intofeature-utilize-dvd-label-batch-processingfrom Oct 19, 2025
Merged
Conversation
Co-authored-by: Betanu701 <5798012+Betanu701@users.noreply.github.com>
Betanu701
approved these changes
Oct 19, 2025
53d70cd
into
feature-utilize-dvd-label-batch-processing
1 check failed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix database migration multiple heads issue
Analysis
Problem
The database migration had two heads:
a79af75f4b31(add_drive_id_field)c3d4e5f6g7h8(add_batch_rename_history)Both branches split after the merge migration
95623e8c5d58. This caused Alembic to fail with a "multiple heads" error during database migration.Solution
Created a new merge migration
d4e5f6g7h8i9_merge_add_drive_id_and_batch_rename.pythat combines the two heads into a single head. The migration follows the same pattern as the existing merge migration95623e8c5d58.Changes Made
/arm/migrations/versions/d4e5f6g7h8i9_merge_add_drive_id_and_batch_rename.py- a merge migration that combines the two heads/arm/migrations/versions/versionto point to the new merged headd4e5f6g7h8i9Verification
✓ Migration chain now has a single head
✓ All migrations trace back to the root correctly
✓ Follows the same pattern as existing merge migrations in the codebase
Original prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.