aboutsummaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-27 16:36:09 -0500
committermegamage <none@none>2009-05-27 16:36:09 -0500
commit5101c7c4c5b0a6781e6bb172b963315e007edc54 (patch)
tree129a929a4ed7cb0120e59d60ccba00e7caadcbd4 /sql
parent75cf5b781cba41fd4a53ad400b06d03a1e1c032d (diff)
[7896] Rename creature_template class/race fields to trainer_class/trainer_race for clarify use. Author: NoFantasy
--HG-- branch : trunk
Diffstat (limited to 'sql')
-rw-r--r--sql/mangos.sql6
-rw-r--r--sql/updates/7896_01_mangos_creature_template.sql4
2 files changed, 7 insertions, 3 deletions
diff --git a/sql/mangos.sql b/sql/mangos.sql
index 2530e9d5811..0aa0dc58820 100644
--- a/sql/mangos.sql
+++ b/sql/mangos.sql
@@ -23,7 +23,7 @@ DROP TABLE IF EXISTS `db_version`;
CREATE TABLE `db_version` (
`version` varchar(120) default NULL,
`creature_ai_version` varchar(120) default NULL,
- `required_7893_01_mangos_command` bit(1) default NULL
+ `required_7896_01_mangos_creature_template` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
--
@@ -819,8 +819,8 @@ CREATE TABLE `creature_template` (
`family` tinyint(4) NOT NULL default '0',
`trainer_type` tinyint(4) NOT NULL default '0',
`trainer_spell` mediumint(8) unsigned NOT NULL default '0',
- `class` tinyint(3) unsigned NOT NULL default '0',
- `race` tinyint(3) unsigned NOT NULL default '0',
+ `trainer_class` tinyint(3) unsigned NOT NULL default '0',
+ `trainer_race` tinyint(3) unsigned NOT NULL default '0',
`minrangedmg` float NOT NULL default '0',
`maxrangedmg` float NOT NULL default '0',
`rangedattackpower` smallint(5) unsigned NOT NULL default '0',
diff --git a/sql/updates/7896_01_mangos_creature_template.sql b/sql/updates/7896_01_mangos_creature_template.sql
new file mode 100644
index 00000000000..51146095825
--- /dev/null
+++ b/sql/updates/7896_01_mangos_creature_template.sql
@@ -0,0 +1,4 @@
+ALTER TABLE db_version CHANGE COLUMN required_7893_01_mangos_command required_7896_01_mangos_creature_template bit;
+
+ALTER TABLE creature_template CHANGE COLUMN class trainer_class tinyint(3) unsigned NOT NULL default '0';
+ALTER TABLE creature_template CHANGE COLUMN race trainer_race tinyint(3) unsigned NOT NULL default '0';