From 4230318f962f5faeddf188d61a367a635a8bb81a Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 21 Jan 2009 16:18:57 -0600 Subject: *Update to Mangos 7136. --HG-- branch : trunk --- sql/updates/7133_01_mangos_skill_discovery_template.sql | 5 +++++ sql/updates/7133_02_mangos_spell_loot_template.sql | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 sql/updates/7133_01_mangos_skill_discovery_template.sql create mode 100644 sql/updates/7133_02_mangos_spell_loot_template.sql (limited to 'sql/updates') diff --git a/sql/updates/7133_01_mangos_skill_discovery_template.sql b/sql/updates/7133_01_mangos_skill_discovery_template.sql new file mode 100644 index 00000000000..85653618cfa --- /dev/null +++ b/sql/updates/7133_01_mangos_skill_discovery_template.sql @@ -0,0 +1,5 @@ +ALTER TABLE db_version CHANGE COLUMN required_7118_01_mangos_skill_discovery_template required_7133_01_mangos_skill_discovery_template bit; + +ALTER TABLE skill_discovery_template + DROP `reqClass`, + ADD COLUMN `reqSkillValue` smallint(5) unsigned NOT NULL default '0' COMMENT 'skill points requirement' AFTER reqSpell; diff --git a/sql/updates/7133_02_mangos_spell_loot_template.sql b/sql/updates/7133_02_mangos_spell_loot_template.sql new file mode 100644 index 00000000000..29b1681fb61 --- /dev/null +++ b/sql/updates/7133_02_mangos_spell_loot_template.sql @@ -0,0 +1,15 @@ +ALTER TABLE db_version CHANGE COLUMN required_7133_01_mangos_skill_discovery_template required_7133_02_mangos_spell_loot_template bit; + +DROP TABLE IF EXISTS `spell_loot_template`; +CREATE TABLE `spell_loot_template` ( + `entry` mediumint(8) unsigned NOT NULL default '0', + `item` mediumint(8) unsigned NOT NULL default '0', + `ChanceOrQuestChance` float NOT NULL default '100', + `groupid` tinyint(3) unsigned NOT NULL default '0', + `mincountOrRef` mediumint(9) NOT NULL default '1', + `maxcount` tinyint(3) unsigned NOT NULL default '1', + `lootcondition` tinyint(3) unsigned NOT NULL default '0', + `condition_value1` mediumint(8) unsigned NOT NULL default '0', + `condition_value2` mediumint(8) unsigned NOT NULL default '0', + PRIMARY KEY (`entry`,`item`) +) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Loot System'; -- cgit v1.2.3