- 移除后端产品、目的地、活动专题等废弃模块的数据库表与业务代码,删除冗余API接口 - 删除小程序端详情页、线路组件等冗余代码,移除搜索工具与测试用例,调整导航逻辑 - 清理管理端废弃的类型定义、编辑器与测试代码 - 更新项目文档,修正模块维护说明与接口文档内容
28 lines
691 B
Python
28 lines
691 B
Python
"""Remove the retired map and theme site modules.
|
|
|
|
Revision ID: 0013_remove_map_theme_modules
|
|
Revises: 0012_remove_offer_modules
|
|
Create Date: 2026-08-17
|
|
"""
|
|
|
|
from alembic import op
|
|
from sqlalchemy import inspect
|
|
|
|
|
|
revision = "0013_remove_map_theme_modules"
|
|
down_revision = "0012_remove_offer_modules"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
existing_tables = set(inspect(op.get_bind()).get_table_names())
|
|
for table_name in ("MapImage", "ThemeCard"):
|
|
if table_name in existing_tables:
|
|
op.drop_table(table_name)
|
|
|
|
|
|
def downgrade() -> None:
|
|
# The retired site modules have no downgrade path. Restore them from a backup if needed.
|
|
pass
|