- 新增客片案例全流程功能,包含前台页面、管理端配置、后端API、数据库迁移与文档 - 新增团队共创详情页面与对应接口 - 重构玩法模块:将静态playData替换为动态API获取,拆分类型定义到playTypes.ts - 优化vite构建配置与环境变量处理,调整详情页操作栏文案 - 更新全量相关文档与配图,新增客片案例、团队共创API文档 - 新增测试用例,完善数据归一化逻辑 - 调整路由配置与环境变量示例文件
33 lines
768 B
Python
33 lines
768 B
Python
"""Remove the destination regions module.
|
|
|
|
Revision ID: 0014_remove_destination_regions_module
|
|
Revises: 0013_remove_map_theme_modules
|
|
"""
|
|
|
|
from alembic import op
|
|
from sqlalchemy import inspect
|
|
import sqlalchemy as sa
|
|
|
|
|
|
revision = "0014_remove_destination_regions_module"
|
|
down_revision = "0013_remove_map_theme_modules"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.alter_column(
|
|
"alembic_version",
|
|
"version_num",
|
|
existing_type=sa.String(length=32),
|
|
type_=sa.String(length=128),
|
|
existing_nullable=False,
|
|
)
|
|
existing_tables = set(inspect(op.get_bind()).get_table_names())
|
|
if "DestinationRegion" in existing_tables:
|
|
op.drop_table("DestinationRegion")
|
|
|
|
|
|
def downgrade() -> None:
|
|
pass
|