Core/Quests: kick AllowableRaces and TimeAllowed from quest_template over to quest_template_addon as these fields no longer are being sent in quest query packets

This commit is contained in:
Ovahlord
2021-06-21 22:10:58 +02:00
parent 914fa45e42
commit d9cbf60fd1
4 changed files with 94 additions and 80 deletions

View File

@@ -0,0 +1,13 @@
ALTER TABLE `quest_template_addon`
ADD COLUMN `AllowableRaces` MEDIUMINT UNSIGNED NOT NULL DEFAULT 0 AFTER `SpecialFlags`,
ADD COLUMN `TimeAllowed` INT UNSIGNED NOT NULL DEFAULT 0 AFTER `AllowableRaces`;
INSERT IGNORE INTO `quest_template_addon` (`ID`) (SELECT `ID` FROM `quest_template` WHERE `AllowableRaces` != 0 OR `TimeAllowed` != 0);
UPDATE `quest_template_addon` AS qta
INNER JOIN `quest_template` AS qt ON (qta.ID = qt.ID)
SET qta.AllowableRaces = qt.AllowableRaces, qta.TimeAllowed = qt.TimeAllowed;
ALTER TABLE `quest_template`
DROP COLUMN `AllowableRaces`,
DROP COLUMN `TimeAllowed`;