|
|
@@ -205,7 +205,17 @@ ALTER TABLE `core_monitoring_task_registration`
|
|
|
ADD INDEX `taskId_index`(`task_id`) USING BTREE;
|
|
|
end if;
|
|
|
|
|
|
+ IF EXISTS(SELECT DISTINCT INDEX_NAME
|
|
|
+ FROM INFORMATION_SCHEMA.STATISTICS
|
|
|
+ WHERE TABLE_SCHEMA = DATABASE()
|
|
|
+ AND TABLE_NAME = 'core_message_center'
|
|
|
+ AND INDEX_NAME = 'idx_userid_type') THEN
|
|
|
+ALTER TABLE `core_message_center`
|
|
|
+DROP INDEX `idx_userid_type`;
|
|
|
+end if;
|
|
|
|
|
|
+ALTER TABLE `core_message_center`
|
|
|
+ ADD INDEX `idx_userid_type`(`user_id`, `type`) USING BTREE;
|
|
|
|
|
|
END ??
|
|
|
DELIMITER ;
|
|
|
@@ -443,4 +453,8 @@ INSERT INTO `sys_dict_data` ( `dict_sort`, `dict_label`, `dict_value`, `dict_typ
|
|
|
ALTER TABLE `core_question`
|
|
|
MODIFY COLUMN `check_content` varchar(1500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '检查内容' AFTER `check_item`;
|
|
|
|
|
|
+
|
|
|
+-- 清除 2024 年的 业务提醒消息
|
|
|
+DELETE from core_message_center WHERE create_time <'2025-01-01' AND type =2;
|
|
|
+
|
|
|
-- 升级脚本执行完成
|