chore(DB): import pending files

Referenced commit(s): dbe6c1324e
This commit is contained in:
AzerothCoreBot
2021-11-23 09:31:51 +00:00
parent dbe6c1324e
commit 05552d9d85

View File

@@ -1,3 +1,19 @@
-- DB update 2021_11_23_00 -> 2021_11_23_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_11_23_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2021_11_23_00 2021_11_23_01 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1637094877418094500'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1637094877418094500');
-- Correct drop chance: [A Letter to Yvette] https://classic.wowhead.com/item=2839/a-letter-to-yvette
@@ -17,3 +33,13 @@ INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `Q
(1537,2839,0,0.01,0,1,0,1,1,'Scarlet Zealot - A Letter to Yvette'),
(1530,2839,0,0.01,0,1,0,1,1,'Rotting Ancestor - A Letter to Yvette'),
(1532,2839,0,0.01,0,1,0,1,1,'Wandering Spirit - A Letter to Yvette');
--
-- END UPDATING QUERIES
--
UPDATE version_db_world SET date = '2021_11_23_01' WHERE sql_rev = '1637094877418094500';
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;