feat: 归档旧迁移文件,创建初始化数据迁移和重置脚本
This commit is contained in:
13
migrations/archive/000027_add_series_binding_fields.down.sql
Normal file
13
migrations/archive/000027_add_series_binding_fields.down.sql
Normal 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;
|
||||
Reference in New Issue
Block a user