+26
@@ -1,3 +1,19 @@
|
|||||||
|
-- DB update 2021_12_31_05 -> 2021_12_31_06
|
||||||
|
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_12_31_05';
|
||||||
|
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||||
|
START TRANSACTION;
|
||||||
|
ALTER TABLE version_db_world CHANGE COLUMN 2021_12_31_05 2021_12_31_06 bit;
|
||||||
|
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1640972252071688181'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||||
|
--
|
||||||
|
-- START UPDATING QUERIES
|
||||||
|
--
|
||||||
|
|
||||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1640972252071688181');
|
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1640972252071688181');
|
||||||
|
|
||||||
-- removes unverified corrections of loot drop of the abyssal crest with drop rate based on udb from consolidated sniffs
|
-- removes unverified corrections of loot drop of the abyssal crest with drop rate based on udb from consolidated sniffs
|
||||||
@@ -10,3 +26,13 @@ INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `Q
|
|||||||
(15211, 20513, 0, 83.5982, 0, 1, 0, 1, 1, 'Azure Templar - Abyssal Crest'),
|
(15211, 20513, 0, 83.5982, 0, 1, 0, 1, 1, 'Azure Templar - Abyssal Crest'),
|
||||||
(15212, 20513, 0, 83.8428, 0, 1, 0, 1, 1, 'Hoary Templar - Abyssal Crest'),
|
(15212, 20513, 0, 83.8428, 0, 1, 0, 1, 1, 'Hoary Templar - Abyssal Crest'),
|
||||||
(15307, 20513, 0, 83.9362, 0, 1, 0, 1, 1, 'Earthen Templar - Abyssal Crest');
|
(15307, 20513, 0, 83.9362, 0, 1, 0, 1, 1, 'Earthen Templar - Abyssal Crest');
|
||||||
|
|
||||||
|
--
|
||||||
|
-- END UPDATING QUERIES
|
||||||
|
--
|
||||||
|
UPDATE version_db_world SET date = '2021_12_31_06' WHERE sql_rev = '1640972252071688181';
|
||||||
|
COMMIT;
|
||||||
|
END //
|
||||||
|
DELIMITER ;
|
||||||
|
CALL updateDb();
|
||||||
|
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||||
Reference in New Issue
Block a user