From f0e00a0434fe934bc1ec65862524674cc10c09e3 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Mon, 13 Feb 2023 10:58:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E9=A1=B9=E7=9B=AE=E6=8A=A5=E5=91=8A):?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E6=97=A7=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 由于项目定时报告功能转为开源,所以要增加一条修改已设置好的定时任务数据的sql,修改之前设置了的定时项目报告的配置信息 --- .../src/main/resources/db/migration/2.7.0/dml/V3_1__dml.sql | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 report-stat/backend/src/main/resources/db/migration/2.7.0/dml/V3_1__dml.sql diff --git a/report-stat/backend/src/main/resources/db/migration/2.7.0/dml/V3_1__dml.sql b/report-stat/backend/src/main/resources/db/migration/2.7.0/dml/V3_1__dml.sql new file mode 100644 index 0000000000..b4584197a1 --- /dev/null +++ b/report-stat/backend/src/main/resources/db/migration/2.7.0/dml/V3_1__dml.sql @@ -0,0 +1,6 @@ +SET SESSION innodb_lock_wait_timeout = 7200; + +-- 由于更新了SendReportJob类的包,所以针对之前设置好的定时任务,要修改它们对应的job +UPDATE `schedule` SET job = 'io.metersphere.reportstatistics.job' WHERE job = 'io.metersphere.xpack.reportstatistics.job.SendReportJob'; + +SET SESSION innodb_lock_wait_timeout = DEFAULT; \ No newline at end of file