feat: 归档旧迁移文件,创建初始化数据迁移和重置脚本
This commit is contained in:
12
migrations/archive/000102_add_polling_protect_fields.up.sql
Normal file
12
migrations/archive/000102_add_polling_protect_fields.up.sql
Normal 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 '上次保护期一致性检查时间';
|
||||
Reference in New Issue
Block a user