Skip to content

[migrations] Merge dual alembic heads to a single head#5

Merged
mxatmx merged 1 commit into
mainfrom
fix/department-salary-scale-cascade-origin
Jun 21, 2026
Merged

[migrations] Merge dual alembic heads to a single head#5
mxatmx merged 1 commit into
mainfrom
fix/department-salary-scale-cascade-origin

Conversation

@mxatmx

@mxatmx mxatmx commented Jun 21, 2026

Copy link
Copy Markdown
Owner

zou upgrade-db runs alembic upgrade head, which aborts when the migration tree has multiple heads. The fork carried two parallel heads (2b8f88aa610f reconcile-squash and d1e2f3a4b5c6 salary-scale-cascade), so every deploy-time upgrade-db was a silent no-op and schema changes (incl. the salary scale ON DELETE CASCADE) never applied. Adds an empty merge revision uniting both heads so upgrades resolve to a single target again.

Problem

Solution

zou upgrade-db runs `alembic upgrade head`, which aborts when the migration
tree has multiple heads. The fork carried two parallel heads
(2b8f88aa610f reconcile-squash and d1e2f3a4b5c6 salary-scale-cascade), so
every deploy-time upgrade-db was a silent no-op and schema changes (incl. the
salary scale ON DELETE CASCADE) never applied. Adds an empty merge revision
uniting both heads so upgrades resolve to a single target again.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mxatmx mxatmx merged commit 8706543 into main Jun 21, 2026
1 check 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.

1 participant