From 6aeab39af30d6a9e296a73820b9a7d9adde15c1d Mon Sep 17 00:00:00 2001 From: AzerothCoreBot Date: Sun, 14 Apr 2019 14:13:10 +0000 Subject: [PATCH] Import pending SQL update file... Referenced commit(s): a1114b37353b18a1a32304aa76188c380a70aa27 --- data/sql/updates/db_world/2019_04_14_00.sql | 30 +++++++++++++++++++ .../rev_1554941258540189300.sql | 5 ---- 2 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 data/sql/updates/db_world/2019_04_14_00.sql delete mode 100644 data/sql/updates/pending_db_world/rev_1554941258540189300.sql diff --git a/data/sql/updates/db_world/2019_04_14_00.sql b/data/sql/updates/db_world/2019_04_14_00.sql new file mode 100644 index 000000000..8e3e2edac --- /dev/null +++ b/data/sql/updates/db_world/2019_04_14_00.sql @@ -0,0 +1,30 @@ +-- DB update 2019_04_11_00 -> 2019_04_14_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 = '2019_04_11_00'; +IF @COLEXISTS = 0 THEN LEAVE proc; END IF; +START TRANSACTION; +ALTER TABLE version_db_world CHANGE COLUMN 2019_04_11_00 2019_04_14_00 bit; +SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1554941258540189300'; IF OK <> 'FALSE' THEN LEAVE proc; END IF; +-- +-- START UPDATING QUERIES +-- + +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1554941258540189300'); + +DELETE FROM `quest_offer_reward` WHERE `ID`= 6089; +INSERT INTO `quest_offer_reward` (`ID`,`Emote1`,`Emote2`,`Emote3`,`Emote4`,`EmoteDelay1`,`EmoteDelay2`,`EmoteDelay3`,`EmoteDelay4`,`RewardText`,`VerifiedBuild`) VALUES +(6089, 1, 0, 0, 0, 0, 0, 0, 0, 'A young $c, I see. Yes, I can bestow you with the skills you need to train and guide your pet. Not only will you be able to teach your pet new abilities, you will now be able to feed your pet, as well as revive it, should it fall in battle.$B$BNow, go forth. May the Earthmother guide you on your path. We shall speak again, at a later date.', 12340); + +-- +-- END UPDATING QUERIES +-- +COMMIT; +END // +DELIMITER ; +CALL updateDb(); +DROP PROCEDURE IF EXISTS `updateDb`; diff --git a/data/sql/updates/pending_db_world/rev_1554941258540189300.sql b/data/sql/updates/pending_db_world/rev_1554941258540189300.sql deleted file mode 100644 index 387511eb2..000000000 --- a/data/sql/updates/pending_db_world/rev_1554941258540189300.sql +++ /dev/null @@ -1,5 +0,0 @@ -INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1554941258540189300'); - -DELETE FROM `quest_offer_reward` WHERE `ID`= 6089; -INSERT INTO `quest_offer_reward` (`ID`,`Emote1`,`Emote2`,`Emote3`,`Emote4`,`EmoteDelay1`,`EmoteDelay2`,`EmoteDelay3`,`EmoteDelay4`,`RewardText`,`VerifiedBuild`) VALUES -(6089, 1, 0, 0, 0, 0, 0, 0, 0, 'A young $c, I see. Yes, I can bestow you with the skills you need to train and guide your pet. Not only will you be able to teach your pet new abilities, you will now be able to feed your pet, as well as revive it, should it fall in battle.$B$BNow, go forth. May the Earthmother guide you on your path. We shall speak again, at a later date.', 12340);