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:
1 parent
914fa45e42
commit
d9cbf60fd1
4 files changed
+94
-80
No files matched your search
@@ -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`;
|
||||
Reference in new issue
Block a user