feat: 归档旧迁移文件,创建初始化数据迁移和重置脚本

This commit is contained in:
2026-04-14 11:24:35 +08:00
parent c35542f911
commit 5e9e41db21
231 changed files with 106 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
-- 移除 Carrier 表的 channel_name、channel_code 字段及相关索引
-- 这些字段未被任何地方使用,属于冗余设计
-- 先删除联合唯一索引
DROP INDEX IF EXISTS idx_carrier_type_channel;
-- 删除 channel_name 字段
ALTER TABLE tb_carrier DROP COLUMN IF EXISTS channel_name;
-- 删除 channel_code 字段
ALTER TABLE tb_carrier DROP COLUMN IF EXISTS channel_code;