From df15f87a9a2733a31149c9d3b6557ab644fc0ae8 Mon Sep 17 00:00:00 2001 From: DDuarte Date: Fri, 3 Jul 2015 01:33:52 +0100 Subject: [PATCH] DB/Schema: Increase size of ConditionValueX fields in `world`.`conditions` Required by bigger masks due to new races in MoP --- sql/updates/world/2015_04_18_01_world_6x.sql | 2 +- sql/updates/world/2015_07_03_06_world.sql | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 sql/updates/world/2015_07_03_06_world.sql diff --git a/sql/updates/world/2015_04_18_01_world_6x.sql b/sql/updates/world/2015_04_18_01_world_6x.sql index 3a351b5a25..9d066fe4a2 100644 --- a/sql/updates/world/2015_04_18_01_world_6x.sql +++ b/sql/updates/world/2015_04_18_01_world_6x.sql @@ -17,7 +17,7 @@ INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`, (15,10144,1,0,27,77,3,0,0,'','The player must be level 77 or higher', 0), (15,10144,1,0,25,54197,0,0,0,'','Show the gossip if the player doesn''t learn Cold Weather Flying', 1), (15,10144,1,0,2,44229,1,1,0,'','Show the gossip if the player doesn''t have the item', 1), -(15,10144,1,0,16,33555378,0,0,0,'','Show the gossip if the player is from the horde', 0), +-- (15,10144,1,0,16,33555378,0,0,0,'','Show the gossip if the player is from the horde', 0), (14,10144,14088,0,27,77,3,0,0,'','Show the text if the player is level 77 or higher', 0), (14,10144,14088,0,25,54197,0,0,0,'','Show the text if the player doesn''t learn Cold Weather Flying', 1), (14,10144,14088,0,2,44221,1,1,0,'','Show the text if the player doesn''t have the item', 1), diff --git a/sql/updates/world/2015_07_03_06_world.sql b/sql/updates/world/2015_07_03_06_world.sql new file mode 100644 index 0000000000..1bf28459b1 --- /dev/null +++ b/sql/updates/world/2015_07_03_06_world.sql @@ -0,0 +1,7 @@ +ALTER TABLE `conditions` CHANGE `ConditionValue1` `ConditionValue1` INT(10) UNSIGNED NOT NULL DEFAULT '0'; +ALTER TABLE `conditions` CHANGE `ConditionValue2` `ConditionValue2` INT(10) UNSIGNED NOT NULL DEFAULT '0'; +ALTER TABLE `conditions` CHANGE `ConditionValue3` `ConditionValue3` INT(10) UNSIGNED NOT NULL DEFAULT '0'; + +DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=15 AND `SourceGroup`=10144 AND `SourceEntry`=1 AND `ElseGroup`=0 AND `ConditionTypeOrReference`=16; +INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ErrorTextId`,`ScriptName`,`Comment`,`NegativeCondition`) VALUES +(15,10144,1,0,16,33555378,0,0,0,'','Show the gossip if the player is from the horde', 0);