From 44ea4bcd246d2f99fd07f35c753e7d9d4aa31ef9 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Sun, 24 Apr 2022 10:38:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(flyway):=20flyway=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 --- .../resources/db/migration/V115__1.20__release.sql | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/backend/src/main/resources/db/migration/V115__1.20__release.sql b/backend/src/main/resources/db/migration/V115__1.20__release.sql index e7009f6666..f94696d6e0 100644 --- a/backend/src/main/resources/db/migration/V115__1.20__release.sql +++ b/backend/src/main/resources/db/migration/V115__1.20__release.sql @@ -268,20 +268,6 @@ END// DELIMITER ; CALL schema_change_plan(); - -DROP PROCEDURE IF EXISTS schema_change_scenario_one; -DELIMITER // -CREATE PROCEDURE schema_change_scenario_one() BEGIN - DECLARE CurrentDatabase VARCHAR(100); - SELECT DATABASE() INTO CurrentDatabase; - IF NOT EXISTS (SELECT * FROM information_schema.statistics WHERE table_schema=CurrentDatabase AND table_name = 'api_scenario_report' AND index_name = 'scenario_id_index') THEN - ALTER TABLE `api_scenario_report` ADD INDEX scenario_id_index ( `scenario_id` ); - END IF; -END// -DELIMITER ; -CALL schema_change_scenario_one(); - - DROP PROCEDURE IF EXISTS schema_change_rela_one; DELIMITER // CREATE PROCEDURE schema_change_rela_one() BEGIN