From 4722fe250875c55f13ae30551ff9c26c9da89bf8 Mon Sep 17 00:00:00 2001 From: liqiang-fit2cloud Date: Mon, 30 Jan 2023 14:18:48 +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 | 2 ++ .../src/main/resources/db/migration/V3__2.4.0_release.sql | 4 +++- .../src/main/resources/db/migration/V4__2.4.1_release.sql | 4 +++- 3 files changed, 8 insertions(+), 2 deletions(-) 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 7dfdeb5c72..7ed765ef5b 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 @@ -92,3 +92,5 @@ update test_plan_api_case set `status` ='STOPPED' where `status` = 'STOP'; update test_plan_api_case set `status` ='FAKE_ERROR' where `status` in ('errorReportResult','errorReport'); -- 执行中 update test_plan_api_case set `status` ='RUNNING' where `status` = 'Running'; + +SET SESSION innodb_lock_wait_timeout = DEFAULT; \ No newline at end of file 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 9d5b41ccd2..29da08cdb0 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 @@ -22,4 +22,6 @@ ALTER TABLE api_case_execution_info ADD INDEX idx_execute_type(execute_type); ALTER TABLE scenario_execution_info ADD INDEX idx_version ( version ); ALTER TABLE scenario_execution_info ADD INDEX idx_project_id(project_id); -ALTER TABLE scenario_execution_info ADD INDEX idx_execute_type(execute_type); \ No newline at end of file +ALTER TABLE scenario_execution_info ADD INDEX idx_execute_type(execute_type); + +SET SESSION innodb_lock_wait_timeout = DEFAULT; \ No newline at end of file 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 2f7fbebff9..f4ec186b63 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 @@ -12,4 +12,6 @@ SELECT IF(EXISTS(SELECT DISTINCT index_name INTO @a; PREPARE stmt1 FROM @a; EXECUTE stmt1; -DEALLOCATE PREPARE stmt1; \ No newline at end of file +DEALLOCATE PREPARE stmt1; + +SET SESSION innodb_lock_wait_timeout = DEFAULT; \ No newline at end of file