Files
junhong_cmp_fiber/migrations/archive/000102_add_polling_protect_fields.up.sql

13 lines
552 B
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
-- 添加 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 '上次保护期一致性检查时间';