DB: Fixed Wintergrasp aura to avoid phase conflicts in other context

it must be limited to WG since its phase cannot be present on character
while doing Ruby Sanctum for example
This commit is contained in:
Yehonal
2017-11-21 15:48:07 +01:00
parent 21cfee757e
commit 0f42b51143

View File

@@ -0,0 +1,33 @@
-- DB update 2017_11_19_00 -> 2017_11_21_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 = '2017_11_19_00';
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
START TRANSACTION;
ALTER TABLE version_db_world CHANGE COLUMN 2017_11_19_00 2017_11_21_00 bit;
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1511275510595112400'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
--
-- START UPDATING QUERIES
--
INSERT INTO version_db_world (`sql_rev`) VALUES ('1511275510595112400');
-- fix Wintergrasp aura limiting to its zone/area
INSERT INTO`spell_area` (`spell`, `area`, `quest_start`, `quest_end`, `aura_spell`, `racemask`, `gender`, `autocast`, `quest_start_status`, `quest_end_status`) VALUES
('55774', '4197', '0', '0', '0', '0', '2', '0', '0', '0');
INSERT INTO`spell_area` (`spell`, `area`, `quest_start`, `quest_end`, `aura_spell`, `racemask`, `gender`, `autocast`, `quest_start_status`, `quest_end_status`) VALUES
('55773', '4197', '0', '0', '0', '0', '2', '0', '0', '0');
--
-- END UPDATING QUERIES
--
COMMIT;
END //
DELIMITER ;
CALL updateDb();
DROP PROCEDURE IF EXISTS `updateDb`;