From 190cef4831b1d1617d657597e673bdcfd7989805 Mon Sep 17 00:00:00 2001 From: fengshuonan Date: Thu, 22 Apr 2021 11:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=907.0.3=E3=80=91=E6=96=B0=E5=A2=9Etimer?= =?UTF-8?q?=E5=92=8C=E5=A4=9A=E6=95=B0=E6=8D=AE=E6=BA=90=E8=A1=A8=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../db/migration/V1.0_20210422_1120__update_timer.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 src/main/resources/db/migration/V1.0_20210422_1120__update_timer.sql diff --git a/src/main/resources/db/migration/V1.0_20210422_1120__update_timer.sql b/src/main/resources/db/migration/V1.0_20210422_1120__update_timer.sql new file mode 100644 index 00000000..4632b596 --- /dev/null +++ b/src/main/resources/db/migration/V1.0_20210422_1120__update_timer.sql @@ -0,0 +1,7 @@ +SET FOREIGN_KEY_CHECKS=0; +INSERT INTO `sys_timers`(`timer_id`, `timer_name`, `action_class`, `cron`, `params`, `job_status`, `remark`, `del_flag`, `create_time`, `create_user`, `update_time`, `update_user`) VALUES (1385068954897223681, '定时检测数据源的链接状态', 'cn.stylefeng.roses.kernel.dsctn.modular.timer.DataSourceStatusCheckTimer', '0/30 * * * * ? ', '', 1, '', 'N', '2021-04-22 11:12:27', 1339550467939639299, NULL, NULL); +UPDATE `sys_timers` SET `timer_name` = '定时刷新服务器状态', `action_class` = 'cn.stylefeng.roses.kernel.monitor.system.holder.SystemHardwareInfoHolder', `cron` = '0 0/1 * * * ? ', `params` = NULL, `job_status` = 1, `remark` = '每1分钟执行一次,刷新服务器状态', `del_flag` = 'N', `create_time` = '2021-01-31 21:59:05', `create_user` = 1339550467939639299, `update_time` = '2021-01-31 22:00:23', `update_user` = 1339550467939639299 WHERE `timer_id` = 1355878268976271362; + +ALTER TABLE `sys_database_info` ADD COLUMN `status_flag` tinyint(4) NULL DEFAULT NULL COMMENT '数据源状态:1-正常,2-无法连接' AFTER `password`; +ALTER TABLE `sys_database_info` ADD COLUMN `error_description` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '连接失败原因' AFTER `status_flag`; +SET FOREIGN_KEY_CHECKS=1; \ No newline at end of file