chore(DB): import pending SQL update file

Referenced commit(s): 3734bbd2e9
This commit is contained in:
AzerothCoreBot
2020-12-01 19:38:49 +00:00
parent 3734bbd2e9
commit 221f33b5b7
@@ -1,3 +1,19 @@
-- DB update 2020_11_30_03 -> 2020_12_01_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 = '2020_11_30_03';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2020_11_30_03 2020_12_01_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1606151779375687700'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1606151779375687700'); INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1606151779375687700');
DELETE FROM `item_template_locale` WHERE `ID` IN (45924, 43563, 43562, 43561, 43560, 43559, 43558, 43557, 43517, 43002, 39904, 39903, 39303, 37100, 37089, 36915, 25706, 24288, 23051, 21786, 21785, 21773, 21772, 20965, 20962, 20953, 20952, 20880, 20829, 20825, 20822, 20819, 20596, 20591, 20221, 18964, 17967, 16339, 16057, 14062, 12947, 9572, 9443, 9417, 8840, 8633, 8628, 8590, 8589, 8583, 8546, 7994, 7988, 7987, 7986, 7681, 7550, 5563, 5562, 5106, 3148) AND `locale` = 'deDE'; DELETE FROM `item_template_locale` WHERE `ID` IN (45924, 43563, 43562, 43561, 43560, 43559, 43558, 43557, 43517, 43002, 39904, 39903, 39303, 37100, 37089, 36915, 25706, 24288, 23051, 21786, 21785, 21773, 21772, 20965, 20962, 20953, 20952, 20880, 20829, 20825, 20822, 20819, 20596, 20591, 20221, 18964, 17967, 16339, 16057, 14062, 12947, 9572, 9443, 9417, 8840, 8633, 8628, 8590, 8589, 8583, 8546, 7994, 7988, 7987, 7986, 7681, 7550, 5563, 5562, 5106, 3148) AND `locale` = 'deDE';
@@ -63,3 +79,12 @@ INSERT INTO `item_template_locale` (`ID`, `locale`, `Name`, `Description`, `Veri
(5562, 'deDE', 'Die Lage von Ameth''Aran', '', 15050), (5562, 'deDE', 'Die Lage von Ameth''Aran', '', 15050),
(5106, 'deDE', 'Rote Maske der Defias', '', 15050), (5106, 'deDE', 'Rote Maske der Defias', '', 15050),
(3148, 'deDE', 'Arbeitshemd', '', 15050); (3148, 'deDE', 'Arbeitshemd', '', 15050);
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;