Files
WonderQ-Project/WonderQ-Admin/alembic/versions/0011_remove_cta_banner_module.py
duanshuwen 548f91c37f refactor: 清理废弃业务模块并更新全栈配置
- 移除后端产品、目的地、活动专题等废弃模块的数据库表与业务代码,删除冗余API接口
- 删除小程序端详情页、线路组件等冗余代码,移除搜索工具与测试用例,调整导航逻辑
- 清理管理端废弃的类型定义、编辑器与测试代码
- 更新项目文档,修正模块维护说明与接口文档内容
2026-08-17 22:43:49 +08:00

27 lines
617 B
Python

"""Remove the retired more-services CTA module.
Revision ID: 0011_remove_cta_banner_module
Revises: 0010_remove_destination_module
Create Date: 2026-08-17
"""
from alembic import op
from sqlalchemy import inspect
revision = "0011_remove_cta_banner_module"
down_revision = "0010_remove_destination_module"
branch_labels = None
depends_on = None
def upgrade() -> None:
bind = op.get_bind()
if "CtaBanner" in set(inspect(bind).get_table_names()):
op.drop_table("CtaBanner")
def downgrade() -> None:
# The retired CTA module has no downgrade path. Restore it from a backup if needed.
pass