From c9ef3248769f7c005821896d4069dac7de7bf25d Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Mon, 30 Jan 2023 14:01:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20migrate=20sql=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/db/migration/V2__2.3.0_release.sql | 1 + .../src/main/resources/db/migration/V3__2.4.0_release.sql | 2 ++ .../src/main/resources/db/migration/V4__2.4.1_release.sql | 2 ++ 3 files changed, 5 insertions(+) diff --git a/api-test/backend/src/main/resources/db/migration/V2__2.3.0_release.sql b/api-test/backend/src/main/resources/db/migration/V2__2.3.0_release.sql index 5bb8ee5851..7dfdeb5c72 100644 --- a/api-test/backend/src/main/resources/db/migration/V2__2.3.0_release.sql +++ b/api-test/backend/src/main/resources/db/migration/V2__2.3.0_release.sql @@ -1,3 +1,4 @@ +SET SESSION innodb_lock_wait_timeout = 7200; -- 场景报告状态统一调整 -- 失败状态 update api_scenario_report set status ='ERROR' where status in ('Error','Timeout','Fail'); diff --git a/api-test/backend/src/main/resources/db/migration/V3__2.4.0_release.sql b/api-test/backend/src/main/resources/db/migration/V3__2.4.0_release.sql index 260f9b5725..9d5b41ccd2 100644 --- a/api-test/backend/src/main/resources/db/migration/V3__2.4.0_release.sql +++ b/api-test/backend/src/main/resources/db/migration/V3__2.4.0_release.sql @@ -1,3 +1,5 @@ +SET SESSION innodb_lock_wait_timeout = 7200; + ALTER TABLE api_execution_info ADD project_id VARCHAR ( 50 ) NULL; ALTER TABLE api_execution_info ADD execute_type VARCHAR ( 50 ) NULL; ALTER TABLE api_execution_info ADD version VARCHAR ( 255 ) NULL; diff --git a/api-test/backend/src/main/resources/db/migration/V4__2.4.1_release.sql b/api-test/backend/src/main/resources/db/migration/V4__2.4.1_release.sql index a03b3430cf..2f7fbebff9 100644 --- a/api-test/backend/src/main/resources/db/migration/V4__2.4.1_release.sql +++ b/api-test/backend/src/main/resources/db/migration/V4__2.4.1_release.sql @@ -1,3 +1,5 @@ +SET SESSION innodb_lock_wait_timeout = 7200; + -- -- 增加一个索引 SELECT IF(EXISTS(SELECT DISTINCT index_name