mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
chore(DB): import pending SQL update file
Referenced commit(s): 7910918d2f
This commit is contained in:
@@ -1,3 +1,19 @@
|
||||
-- DB update 2021_05_04_05 -> 2021_05_04_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_05_04_05';
|
||||
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
|
||||
START TRANSACTION;
|
||||
ALTER TABLE version_db_world CHANGE COLUMN 2021_05_04_05 2021_05_04_06 bit;
|
||||
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1619636650124390405'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
|
||||
--
|
||||
-- START UPDATING QUERIES
|
||||
--
|
||||
|
||||
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1619636650124390405');
|
||||
|
||||
DELETE FROM `waypoint_data` WHERE `id` IN (139910, 139920);
|
||||
@@ -13,3 +29,12 @@ INSERT INTO `creature_formations` (`leaderGUID`,`memberGUID`,`dist`,`angle`,`gro
|
||||
(13990,13990,0,0,515,0,0),
|
||||
(13990,13991,3,80,515,0,0),
|
||||
(13990,13992,3,280,515,0,0);
|
||||
|
||||
--
|
||||
-- END UPDATING QUERIES
|
||||
--
|
||||
COMMIT;
|
||||
END //
|
||||
DELIMITER ;
|
||||
CALL updateDb();
|
||||
DROP PROCEDURE IF EXISTS `updateDb`;
|
||||
Reference in New Issue
Block a user