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,13 @@
-- 删除 tb_device 的索引和字段
DROP INDEX IF EXISTS idx_device_series_allocation;
ALTER TABLE tb_device
DROP COLUMN IF EXISTS series_allocation_id,
DROP COLUMN IF EXISTS first_commission_paid,
DROP COLUMN IF EXISTS accumulated_recharge;
-- 删除 tb_iot_card 的索引和字段
DROP INDEX IF EXISTS idx_iot_card_series_allocation;
ALTER TABLE tb_iot_card
DROP COLUMN IF EXISTS series_allocation_id,
DROP COLUMN IF EXISTS first_commission_paid,
DROP COLUMN IF EXISTS accumulated_recharge;