Files
syops/backend/migrations/versions/mh3b4c5d6e7f_merge_migration_heads.py
T

31 lines
1.0 KiB
Python
Raw 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.
"""合并 role、snow 反馈与库存回调三条 Alembic 头。
用途:``pr9d0e1f2031``(权限组 × 收料配置)、``6d7b0d04ac25``(snow 反馈状态 × 调拨命名)
与 ``p1b2c3d4e5f6``(调用日志 wire_json × 库存 RPA 回调)在把 ``role`` 合入 ``dev`` 后
并列成三个 head,导致 ``flask db upgrade`` 无法解析默认 ``head``。
依赖:``pr9d0e1f2031``、``6d7b0d04ac25``、``p1b2c3d4e5f6``。
逻辑:不修改业务表,只声明三条已完成迁移线在此收敛。
Revision ID: mh3b4c5d6e7f
Revises: 6d7b0d04ac25, p1b2c3d4e5f6, pr9d0e1f2031
Create Date: 2026-09-29 14:30:00.000000
"""
from alembic import op # noqa: F401 - Alembic migration module contract
revision = "mh3b4c5d6e7f"
down_revision = ("6d7b0d04ac25", "p1b2c3d4e5f6", "pr9d0e1f2031")
branch_labels = None
depends_on = None
def upgrade() -> None:
"""合并三条迁移头,不执行数据库结构变更。"""
pass
def downgrade() -> None:
"""撤销合并节点;不会回滚三个父分支的业务变更。"""
pass