From 56ddb6711aee8c6be7dddc47f2c7870ca3f6fa39 Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Mon, 6 Sep 2021 11:09:26 +0000 Subject: [PATCH] chore(DB): import pending files Referenced commit(s): 82cfdfeddf31a5b4a0ddc09b9c7481c6bef25458 --- data/sql/updates/db_world/2021_09_06_01.sql | 34 +++++++++++++++++++ .../rev_1630588319071631667.sql | 8 ----- 2 files changed, 34 insertions(+), 8 deletions(-) create mode 100644 data/sql/updates/db_world/2021_09_06_01.sql delete mode 100644 data/sql/updates/pending_db_world/rev_1630588319071631667.sql diff --git a/data/sql/updates/db_world/2021_09_06_01.sql b/data/sql/updates/db_world/2021_09_06_01.sql new file mode 100644 index 000000000..f39e6de9e --- /dev/null +++ b/data/sql/updates/db_world/2021_09_06_01.sql @@ -0,0 +1,34 @@ +-- DB update 2021_09_06_00 -> 2021_09_06_01 +DROP PROCEDURE IF EXISTS `updateDb`; +DELIMITER // +CREATE PROCEDURE updateDb () +proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE'; +SELECT COUNT(*) INTO @COLEXISTS +FROM information_schema.COLUMNS +WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_09_06_00'; +IF @COLEXISTS = 0 THEN LEAVE proc; END IF; +START TRANSACTION; +ALTER TABLE version_db_world CHANGE COLUMN 2021_09_06_00 2021_09_06_01 bit; +SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1630588319071631667'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; +-- +-- START UPDATING QUERIES +-- + +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1630588319071631667'); + +-- Add Slowing poison and fade by aura +UPDATE `creature_template_addon` SET `auras` = '22766 8601' WHERE (`entry` = 7110); + +-- Remove the casting of the slowing posion and sneak from smartAi as they now works on auras +DELETE FROM `smart_scripts` WHERE (`entryorguid` = 7110) AND (`source_type` = 0) AND (`id` IN (0, 2)); + + +-- +-- END UPDATING QUERIES +-- +UPDATE version_db_world SET date = '2021_09_06_01' WHERE sql_rev = '1630588319071631667'; +COMMIT; +END // +DELIMITER ; +CALL updateDb(); +DROP PROCEDURE IF EXISTS `updateDb`; diff --git a/data/sql/updates/pending_db_world/rev_1630588319071631667.sql b/data/sql/updates/pending_db_world/rev_1630588319071631667.sql deleted file mode 100644 index 3780d2d32..000000000 --- a/data/sql/updates/pending_db_world/rev_1630588319071631667.sql +++ /dev/null @@ -1,8 +0,0 @@ -INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1630588319071631667'); - --- Add Slowing poison and fade by aura -UPDATE `creature_template_addon` SET `auras` = '22766 8601' WHERE (`entry` = 7110); - --- Remove the casting of the slowing posion and sneak from smartAi as they now works on auras -DELETE FROM `smart_scripts` WHERE (`entryorguid` = 7110) AND (`source_type` = 0) AND (`id` IN (0, 2)); -