Files
group_fqcd_jr/alembic/versions/20260911_merge_review_separation.py

23 lines
889 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""合并两条分支的迁移头。
背景:`qyqy_develop` 与 `yc` 两条线各自补齐了一次"撤下配置发布自审约束"的迁移
(`20260910_drop_review_separation` 与 `20260911_drop_review_separation`),
导致合并后 alembic 出现两个 head。两者都先查 `information_schema` 再决定是否
`ALTER`,重复执行安全,因此全部保留,只用一个空的合并 revision 把图收敛为单 head。
本迁移不改任何表结构:`upgrade`/`downgrade` 都是空操作。
"""
revision = "20260911_merge_review_separation"
down_revision = ("20260910_drop_review_separation", "20260911_drop_review_separation")
branch_labels = None
depends_on = None
def upgrade() -> None:
"""空迁移:只合并分支头,不做结构变更。"""
def downgrade() -> None:
"""回滚只是取消合并标记,两条分支的迁移本身不受影响。"""