ALTER TABLE `data_center`.`data_device_alarm_rel`
    ADD COLUMN `device_code` varchar(50) NULL COMMENT '设备编码' AFTER `device_id`;

ALTER TABLE `data_center`.`data_device_alarm_rel`
    ADD COLUMN `type` tinyint(1) NULL COMMENT '告警类型 1:广播设备告警 1:闸门设备告警' AFTER `handle_remark`;

UPDATE data_device_alarm_rel
SET type = 1
WHERE
    type IS NULL;

ALTER TABLE `data_center`.`data_indicator_point`
    MODIFY COLUMN `monitor_tags_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL COMMENT '水库名称 结构名称' AFTER `base_id`;

ALTER TABLE `data_center`.`data_alarm_summary`
    MODIFY COLUMN `monitor_tags_name` text CHARACTER SET utf8mb3 COLLATE utf8mb3_general_ci NULL AFTER `push_condition_id`;