diff options
author | Vincent-Michael <Vincent_Michael@gmx.de> | 2014-09-28 04:09:40 +0200 |
---|---|---|
committer | Vincent-Michael <Vincent_Michael@gmx.de> | 2014-09-28 04:09:40 +0200 |
commit | bcfc2911b477cc4597cfe2acb9ada23ff88ba2bc (patch) | |
tree | 62c5592fa53d74879ec10b1b337707792e14ea87 | |
parent | ad336996eef7a30a82c9bcb3da2997fd9bd04e67 (diff) |
SQL: Fix sql import on unix
-rw-r--r-- | sql/updates/world/2014_09_27_03_world.sql | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/sql/updates/world/2014_09_27_03_world.sql b/sql/updates/world/2014_09_27_03_world.sql index 3a04ba46d8c..1810f488150 100644 --- a/sql/updates/world/2014_09_27_03_world.sql +++ b/sql/updates/world/2014_09_27_03_world.sql @@ -160,23 +160,23 @@ ALTER TABLE `prospecting_loot_template` CHANGE `maxcount` `MaxCount` TINYINT(3) ALTER TABLE `prospecting_loot_template` ADD COLUMN `Comment` VARCHAR(255) AFTER `MaxCount`; ALTER TABLE `prospecting_loot_template` ADD PRIMARY KEY (`Entry`,`Item`); --- Alter Reference_loot_template -ALTER TABLE `Reference_loot_template` DROP PRIMARY KEY; -ALTER TABLE `Reference_loot_template` CHANGE `entry` `Entry` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT 0; -ALTER TABLE `Reference_loot_template` CHANGE `item` `Item` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT 0; -ALTER TABLE `Reference_loot_template` ADD COLUMN `Reference` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT 0 AFTER `Item`; -UPDATE `Reference_loot_template` SET `Reference` = `mincountOrRef` * -1 WHERE `mincountOrRef` < 0; -UPDATE `Reference_loot_template` SET `mincountOrRef` = 1 WHERE `Reference` > 0; -ALTER TABLE `Reference_loot_template` ADD COLUMN `QuestRequired` BOOL NOT NULL DEFAULT 0 AFTER `ChanceOrQuestChance`; -UPDATE `Reference_loot_template` SET `QuestRequired` = 1 WHERE `ChanceOrQuestChance` < 0; -UPDATE `Reference_loot_template` SET `ChanceOrQuestChance` = `ChanceOrQuestChance` * -1 WHERE `ChanceOrQuestChance` < 0; -ALTER TABLE `Reference_loot_template` CHANGE `ChanceOrQuestChance` `Chance` FLOAT NOT NULL DEFAULT 100; -ALTER TABLE `Reference_loot_template` CHANGE `lootmode` `LootMode` SMALLINT(5) UNSIGNED NOT NULL DEFAULT 1; -ALTER TABLE `Reference_loot_template` CHANGE `groupid` `GroupId` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0; -ALTER TABLE `Reference_loot_template` CHANGE `mincountOrRef` `MinCount` TINYINT(3) UNSIGNED NOT NULL DEFAULT 1; -ALTER TABLE `Reference_loot_template` CHANGE `maxcount` `MaxCount` TINYINT(3) UNSIGNED NOT NULL DEFAULT 1; -ALTER TABLE `Reference_loot_template` ADD COLUMN `Comment` VARCHAR(255) AFTER `MaxCount`; -ALTER TABLE `Reference_loot_template` ADD PRIMARY KEY (`Entry`,`Item`); +-- Alter reference_loot_template +ALTER TABLE `reference_loot_template` DROP PRIMARY KEY; +ALTER TABLE `reference_loot_template` CHANGE `entry` `Entry` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `reference_loot_template` CHANGE `item` `Item` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `reference_loot_template` ADD COLUMN `Reference` MEDIUMINT(8) UNSIGNED NOT NULL DEFAULT 0 AFTER `Item`; +UPDATE `reference_loot_template` SET `Reference` = `mincountOrRef` * -1 WHERE `mincountOrRef` < 0; +UPDATE `reference_loot_template` SET `mincountOrRef` = 1 WHERE `Reference` > 0; +ALTER TABLE `reference_loot_template` ADD COLUMN `QuestRequired` BOOL NOT NULL DEFAULT 0 AFTER `ChanceOrQuestChance`; +UPDATE `reference_loot_template` SET `QuestRequired` = 1 WHERE `ChanceOrQuestChance` < 0; +UPDATE `reference_loot_template` SET `ChanceOrQuestChance` = `ChanceOrQuestChance` * -1 WHERE `ChanceOrQuestChance` < 0; +ALTER TABLE `reference_loot_template` CHANGE `ChanceOrQuestChance` `Chance` FLOAT NOT NULL DEFAULT 100; +ALTER TABLE `reference_loot_template` CHANGE `lootmode` `LootMode` SMALLINT(5) UNSIGNED NOT NULL DEFAULT 1; +ALTER TABLE `reference_loot_template` CHANGE `groupid` `GroupId` TINYINT(3) UNSIGNED NOT NULL DEFAULT 0; +ALTER TABLE `reference_loot_template` CHANGE `mincountOrRef` `MinCount` TINYINT(3) UNSIGNED NOT NULL DEFAULT 1; +ALTER TABLE `reference_loot_template` CHANGE `maxcount` `MaxCount` TINYINT(3) UNSIGNED NOT NULL DEFAULT 1; +ALTER TABLE `reference_loot_template` ADD COLUMN `Comment` VARCHAR(255) AFTER `MaxCount`; +ALTER TABLE `reference_loot_template` ADD PRIMARY KEY (`Entry`,`Item`); -- Alter skinning_loot_template ALTER TABLE `skinning_loot_template` DROP PRIMARY KEY; |