From 913a9b304a80be478eb9db05b54e43c977cea013 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 16 Aug 2022 15:50:17 +0800 Subject: [PATCH] =?UTF-8?q?build:=20flyway=20=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/db/migration/V129__2.1.0__release.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backend/src/main/resources/db/migration/V129__2.1.0__release.sql b/backend/src/main/resources/db/migration/V129__2.1.0__release.sql index 9e56b953b3..20cc1230f2 100644 --- a/backend/src/main/resources/db/migration/V129__2.1.0__release.sql +++ b/backend/src/main/resources/db/migration/V129__2.1.0__release.sql @@ -68,3 +68,13 @@ ALTER TABLE `load_test_report` ALTER TABLE test_case DROP COLUMN other_test_name; ALTER TABLE test_plan DROP COLUMN test_case_match_rule; ALTER TABLE test_plan DROP COLUMN executor_match_rule; + +-- V130_2-1-0_Add_Ui_Index +-- +ALTER TABLE `ui_scenario_module` ADD INDEX index_project_id (`project_id`); + +ALTER TABLE `ui_scenario` ADD INDEX index_project_id (`project_id`); + +ALTER TABLE `ui_scenario` ADD INDEX index_module_id (`module_id`); + +ALTER TABLE `ui_scenario` ADD INDEX index_project_id_status_module_id (`project_id`,`STATUS`,`module_id`);