From 1dd7d7514552919b9626ffa22ed4471224afe3c8 Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Thu, 8 Apr 2021 02:33:30 +0000 Subject: [PATCH] chore(DB): import pending SQL update file Referenced commit(s): d0e9c6cadb21728d2a5e21ecf0c9feadd353fbb5 --- .../2021_04_08_00.sql} | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) rename data/sql/updates/{pending_db_world/rev_1617549311457174700.sql => db_world/2021_04_08_00.sql} (93%) diff --git a/data/sql/updates/pending_db_world/rev_1617549311457174700.sql b/data/sql/updates/db_world/2021_04_08_00.sql similarity index 93% rename from data/sql/updates/pending_db_world/rev_1617549311457174700.sql rename to data/sql/updates/db_world/2021_04_08_00.sql index 3a2097090..ed2ea7162 100644 --- a/data/sql/updates/pending_db_world/rev_1617549311457174700.sql +++ b/data/sql/updates/db_world/2021_04_08_00.sql @@ -1,3 +1,19 @@ +-- DB update 2021_04_07_01 -> 2021_04_08_00 +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_04_07_01'; +IF @COLEXISTS = 0 THEN LEAVE proc; END IF; +START TRANSACTION; +ALTER TABLE version_db_world CHANGE COLUMN 2021_04_07_01 2021_04_08_00 bit; +SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1617549311457174700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; +-- +-- START UPDATING QUERIES +-- + INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1617549311457174700'); ALTER TABLE `spell_dbc` @@ -29,3 +45,12 @@ INSERT INTO `spell_dbc` VALUES (25236, 0, 0, 0, 327696, 134218240, 0, 263168, 513, 0, 0, 0, 327680, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 70, 70, 0, 1, 150, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 173555, 0, 3, 0, 0, 1, 0, 0, 0, 0, 0, 864, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 0, 1648, 0, 50, 'Execute','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 7','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Attempt to finish off a wounded foe, causing ${$m1+$AP*0.2} damage and converting each extra point of rage into $*10;F1 additional damage (up to a maximum cost of 30 rage). Only usable on enemies that have less than 20% health.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190,'','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712188, 0, 133, 1500, 0, 4, 536870912, 0, 0, 0, 2, 2, 0, 2.1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0), (47470, 0, 0, 0, 327696, 134218240, 0, 263168, 513, 0, 0, 0, 327680, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 73, 73, 0, 1, 150, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 173555, 0, 3, 0, 0, 1, 0, 0, 0, 0, 0, 1141, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 0, 1648, 0, 50, 'Execute','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 8','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Attempt to finish off a wounded foe, causing ${$m1+$AP*0.2} damage and converting each extra point of rage into $*10;F1 additional damage (up to a maximum cost of 30 rage). Only usable on enemies that have less than 20% health.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190,'','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712188, 0, 133, 1500, 0, 4, 536870912, 0, 0, 0, 2, 2, 0, 3, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0), (47471, 0, 0, 0, 327696, 134218240, 0, 263168, 513, 0, 0, 0, 327680, 0, 0, 0, 0, 0, 0, 1, 0, 2, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 80, 80, 0, 1, 150, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 173555, 0, 3, 0, 0, 1, 0, 0, 0, 0, 0, 1455, 0, 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 250, 0, 1648, 0, 50, 'Execute','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Rank 9','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190, 'Attempt to finish off a wounded foe, causing ${$m1+$AP*0.2} damage and converting each extra point of rage into $*10;F1 additional damage (up to a maximum cost of 30 rage). Only usable on enemies that have less than 20% health.','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712190,'','','','','','','','','', 0, 0, 0, 0, 0, 0, 0, 16712188, 0, 133, 1500, 0, 4, 536870912, 0, 0, 0, 2, 2, 0, 3.8, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0); + +-- +-- END UPDATING QUERIES +-- +COMMIT; +END // +DELIMITER ; +CALL updateDb(); +DROP PROCEDURE IF EXISTS `updateDb`;