build(migration): push之前校验migration multiple head

This commit is contained in:
sophie committed 2026-06-23 13:37:30 +08:00
1 parent 1bc938155a
commit 2aa8609c17
3 files changed
+53 -8

No files matched your search

@@ -0,0 +1,30 @@
"""Merge FAQ stale fields and shipping schema alignment migration heads.
Purpose:
Keep Alembic's revision graph linear after two independent backend schema
fixes were added from different migration branches.
Dependencies:
Alembic revision metadata for c6d7e8f9a0b1 and f1e2d3c4b5a6.
Flow:
The deployment command ``flask db upgrade`` targets ``head``; this
merge-only revision gives Alembic a single head without executing DDL.
Revision ID: f9a0b1c2d3e4
Revises: c6d7e8f9a0b1, f1e2d3c4b5a6
Create Date: 2026-06-23 12:20:00.000000
"""
revision = "f9a0b1c2d3e4"
down_revision = ("c6d7e8f9a0b1", "f1e2d3c4b5a6")
branch_labels = None
depends_on = None
def upgrade():
"""Unify the two migration heads; no database changes are required."""
pass
def downgrade():
"""Keep downgrade as a no-op because this revision only changes topology."""
pass