chore(DB): import pending SQL update file

Referenced commit(s): cd219aaeee
This commit is contained in:
AzerothCoreBot
2021-01-12 18:29:03 +00:00
parent cd219aaeee
commit 07b76b162d
@@ -1,3 +1,19 @@
-- DB update 2021_01_12_00 -> 2021_01_12_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_01_12_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_01_12_00 2021_01_12_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1607250027116831100'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1607250027116831100'); INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1607250027116831100');
DELETE FROM `item_template_locale` WHERE `ID` IN (42083, 42019, 42013, 42007, 42000, 41995, 41911, 41900, 38996, 38970, 38957, 37976, 37967, 37955, 37837, 37742, 37711, 37706, 37544, 37090, 35553, 35551, 35550, 35549, 35548, 35546, 35545, 35544, 35541, 35539, 35538, 35537, 35535, 35533, 35531, 35529, 35527, 35526, 35525, 35524, 35523, 35521, 35520, 35519, 35518, 35517, 34835, 34663, 34647, 34645) AND `locale` = 'deDE'; DELETE FROM `item_template_locale` WHERE `ID` IN (42083, 42019, 42013, 42007, 42000, 41995, 41911, 41900, 38996, 38970, 38957, 37976, 37967, 37955, 37837, 37742, 37711, 37706, 37544, 37090, 35553, 35551, 35550, 35549, 35548, 35546, 35545, 35544, 35541, 35539, 35538, 35537, 35535, 35533, 35531, 35529, 35527, 35526, 35525, 35524, 35523, 35521, 35520, 35519, 35518, 35517, 34835, 34663, 34647, 34645) AND `locale` = 'deDE';
@@ -52,3 +68,12 @@ INSERT INTO `item_template_locale` (`ID`, `locale`, `Name`, `Description`, `Veri
(34663, 'deDE', 'Silberner Federkiel', '', 15050), (34663, 'deDE', 'Silberner Federkiel', '', 15050),
(34647, 'deDE', 'Rauhes Pergament', '', 15050), (34647, 'deDE', 'Rauhes Pergament', '', 15050),
(34645, 'deDE', 'Irdische Tinte', '', 15050); (34645, 'deDE', 'Irdische Tinte', '', 15050);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;