feat: 归档旧迁移文件,创建初始化数据迁移和重置脚本
This commit is contained in:
8
migrations/000115_init_data.down.sql
Normal file
8
migrations/000115_init_data.down.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
-- 回滚初始化数据
|
||||
-- 删除由 000115_init_data.up.sql 插入的轮询配置行
|
||||
-- purchase_role 回填不需要 rollback(历史数据回填,回滚会破坏数据一致性)
|
||||
|
||||
DELETE FROM tb_polling_config
|
||||
WHERE config_name = '停机卡轮询'
|
||||
AND card_condition = 'suspended'
|
||||
AND description = '停机卡每小时检查实名/流量/套餐,满足条件时自动复机';
|
||||
Reference in New Issue
Block a user