2 -- Table changes for `creature_loot_template`
4 ALTER TABLE `creature_loot_template` CHANGE COLUMN `quest_freeforall` `QuestFFAorLootCondition` TINYINT(3) NOT NULL DEFAULT 1,
5 ADD COLUMN `condition_value1` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `QuestFFAorLootCondition`,
6 ADD COLUMN `condition_value2` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `condition_value1`;
8 ALTER TABLE `creature_loot_template` DROP PRIMARY KEY,
9 ADD PRIMARY KEY(`entry`, `item`, `condition_value1`);
13 -- Table changes for `disenchant_loot_template`
15 ALTER TABLE `disenchant_loot_template` CHANGE COLUMN `quest_freeforall` `QuestFFAorLootCondition` TINYINT(3) NOT NULL DEFAULT 1,
16 ADD COLUMN `condition_value1` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `QuestFFAorLootCondition`,
17 ADD COLUMN `condition_value2` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `condition_value1`;
19 ALTER TABLE `disenchant_loot_template` DROP PRIMARY KEY,
20 ADD PRIMARY KEY(`entry`, `item`, `condition_value1`);
24 -- Table changes for `fishing_loot_template`
26 ALTER TABLE `fishing_loot_template` CHANGE COLUMN `quest_freeforall` `QuestFFAorLootCondition` TINYINT(3) NOT NULL DEFAULT 1,
27 ADD COLUMN `condition_value1` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `QuestFFAorLootCondition`,
28 ADD COLUMN `condition_value2` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `condition_value1`;
30 ALTER TABLE `fishing_loot_template` DROP PRIMARY KEY,
31 ADD PRIMARY KEY(`entry`, `item`, `condition_value1`);
35 -- Table changes for `gameobject_loot_template`
37 ALTER TABLE `gameobject_loot_template` CHANGE COLUMN `quest_freeforall` `QuestFFAorLootCondition` TINYINT(3) NOT NULL DEFAULT 1,
38 ADD COLUMN `condition_value1` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `QuestFFAorLootCondition`,
39 ADD COLUMN `condition_value2` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `condition_value1`;
41 ALTER TABLE `gameobject_loot_template` DROP PRIMARY KEY,
42 ADD PRIMARY KEY(`entry`, `item`, `condition_value1`);
46 -- Table changes for `item_loot_template`
48 ALTER TABLE `item_loot_template` CHANGE COLUMN `quest_freeforall` `QuestFFAorLootCondition` TINYINT(3) NOT NULL DEFAULT 1,
49 ADD COLUMN `condition_value1` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `QuestFFAorLootCondition`,
50 ADD COLUMN `condition_value2` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `condition_value1`;
52 ALTER TABLE `item_loot_template` DROP PRIMARY KEY,
53 ADD PRIMARY KEY(`entry`, `item`, `condition_value1`);
57 -- Table changes for `pickpocketing_loot_template`
59 ALTER TABLE `pickpocketing_loot_template` CHANGE COLUMN `quest_freeforall` `QuestFFAorLootCondition` TINYINT(3) NOT NULL DEFAULT 1,
60 ADD COLUMN `condition_value1` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `QuestFFAorLootCondition`,
61 ADD COLUMN `condition_value2` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `condition_value1`;
63 ALTER TABLE `pickpocketing_loot_template` DROP PRIMARY KEY,
64 ADD PRIMARY KEY(`entry`, `item`, `condition_value1`);
68 -- Table changes for `skinning_loot_template`
70 ALTER TABLE `skinning_loot_template` CHANGE COLUMN `quest_freeforall` `QuestFFAorLootCondition` TINYINT(3) NOT NULL DEFAULT 1,
71 ADD COLUMN `condition_value1` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `QuestFFAorLootCondition`,
72 ADD COLUMN `condition_value2` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `condition_value1`;
74 ALTER TABLE `skinning_loot_template` DROP PRIMARY KEY,
75 ADD PRIMARY KEY(`entry`, `item`, `condition_value1`);
79 -- Table changes for `prospecting_loot_template`
81 ALTER TABLE `prospecting_loot_template` CHANGE COLUMN `quest_freeforall` `QuestFFAorLootCondition` TINYINT(3) NOT NULL DEFAULT 1,
82 ADD COLUMN `condition_value1` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `QuestFFAorLootCondition`,
83 ADD COLUMN `condition_value2` int(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `condition_value1`;
85 ALTER TABLE `prospecting_loot_template` DROP PRIMARY KEY,
86 ADD PRIMARY KEY(`entry`, `item`, `condition_value1`);