From 5101c7c4c5b0a6781e6bb172b963315e007edc54 Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 27 May 2009 16:36:09 -0500 Subject: [7896] Rename creature_template class/race fields to trainer_class/trainer_race for clarify use. Author: NoFantasy --HG-- branch : trunk --- sql/mangos.sql | 6 +++--- sql/updates/7896_01_mangos_creature_template.sql | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 sql/updates/7896_01_mangos_creature_template.sql (limited to 'sql') 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'; -- cgit v1.2.3