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,12 @@
-- 添加 protect 队列所需字段
-- tb_polling_config: 新增保护期检查间隔字段
ALTER TABLE tb_polling_config
ADD COLUMN IF NOT EXISTS protect_check_interval INT NULL;
COMMENT ON COLUMN tb_polling_config.protect_check_interval IS '保护期一致性检查间隔NULL=不参与';
-- tb_iot_card: 新增上次保护期检查时间字段
ALTER TABLE tb_iot_card
ADD COLUMN IF NOT EXISTS last_protect_check_at TIMESTAMP NULL;
COMMENT ON COLUMN tb_iot_card.last_protect_check_at IS '上次保护期一致性检查时间';