mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-06 08:59:11 +01:00
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:
13
sql/updates/world/4.3.4/2021_06_21_02_world.sql
Normal file
13
sql/updates/world/4.3.4/2021_06_21_02_world.sql
Normal 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`;
|
||||
Reference in New Issue
Block a user