[8462] Fix database table to allow emote id bigger than 255

Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
Athor 2009-09-04 02:26:03 +02:00 committed by NoFantasy
parent 26a104a05a
commit 7f444189c6
5 changed files with 9 additions and 4 deletions

View file

@ -24,7 +24,7 @@ CREATE TABLE `db_version` (
`version` varchar(120) default NULL, `version` varchar(120) default NULL,
`creature_ai_version` varchar(120) default NULL, `creature_ai_version` varchar(120) default NULL,
`cache_id` int(10) default '0', `cache_id` int(10) default '0',
`required_8451_01_mangos_spell_proc_event` bit(1) default NULL `required_8462_01_mangos_creature_ai_texts` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes'; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes';
-- --
@ -1043,7 +1043,7 @@ CREATE TABLE `creature_ai_texts` (
`sound` mediumint(8) unsigned NOT NULL DEFAULT '0', `sound` mediumint(8) unsigned NOT NULL DEFAULT '0',
`type` tinyint(3) unsigned NOT NULL DEFAULT '0', `type` tinyint(3) unsigned NOT NULL DEFAULT '0',
`language` tinyint(3) unsigned NOT NULL DEFAULT '0', `language` tinyint(3) unsigned NOT NULL DEFAULT '0',
`emote` tinyint(3) unsigned NOT NULL DEFAULT '0', `emote` smallint(5) unsigned NOT NULL DEFAULT '0',
`comment` text, `comment` text,
PRIMARY KEY (`entry`) PRIMARY KEY (`entry`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Script Texts'; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Script Texts';

View file

@ -0,0 +1,3 @@
ALTER TABLE db_version CHANGE COLUMN required_8451_01_mangos_spell_proc_event required_8462_01_mangos_creature_ai_texts bit;
ALTER TABLE creature_ai_texts CHANGE emote emote smallint(5) unsigned NOT NULL default '0';

View file

@ -98,6 +98,7 @@ pkgdata_DATA = \
8433_01_characters_character_account_data.sql \ 8433_01_characters_character_account_data.sql \
8444_01_mangos_mangos_string.sql \ 8444_01_mangos_mangos_string.sql \
8451_01_mangos_spell_proc_event.sql \ 8451_01_mangos_spell_proc_event.sql \
8462_01_mangos_creature_ai_texts.sql \
README README
## Additional files to include when running 'make dist' ## Additional files to include when running 'make dist'
@ -176,4 +177,5 @@ EXTRA_DIST = \
8433_01_characters_character_account_data.sql \ 8433_01_characters_character_account_data.sql \
8444_01_mangos_mangos_string.sql \ 8444_01_mangos_mangos_string.sql \
8451_01_mangos_spell_proc_event.sql \ 8451_01_mangos_spell_proc_event.sql \
8462_01_mangos_creature_ai_texts.sql \
README README

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "8461" #define REVISION_NR "8462"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__

View file

@ -1,6 +1,6 @@
#ifndef __REVISION_SQL_H__ #ifndef __REVISION_SQL_H__
#define __REVISION_SQL_H__ #define __REVISION_SQL_H__
#define REVISION_DB_CHARACTERS "required_8433_01_characters_character_account_data" #define REVISION_DB_CHARACTERS "required_8433_01_characters_character_account_data"
#define REVISION_DB_MANGOS "required_8451_01_mangos_spell_proc_event" #define REVISION_DB_MANGOS "required_8462_01_mangos_creature_ai_texts"
#define REVISION_DB_REALMD "required_8332_01_realmd_realmcharacters" #define REVISION_DB_REALMD "required_8332_01_realmd_realmcharacters"
#endif // __REVISION_SQL_H__ #endif // __REVISION_SQL_H__