[0099] Fix character_phase_data.

Signed-off-by: Salja <salja2012@hotmail.de>
This commit is contained in:
Salja 2012-08-15 18:17:19 +02:00 committed by Antz
parent 8ce96f2ed7
commit 1117cdaec9
4 changed files with 7 additions and 4 deletions

View file

@ -21,7 +21,7 @@
DROP TABLE IF EXISTS `character_db_version`; DROP TABLE IF EXISTS `character_db_version`;
CREATE TABLE `character_db_version` ( CREATE TABLE `character_db_version` (
`required_0028_xxxxx_01_characters_character_phase_data` bit(1) default NULL `required_0096_xxxxx_01_characters_character_phase_data` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB'; ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
-- --
@ -678,7 +678,7 @@ DROP TABLE IF EXISTS `character_phase_data`;
CREATE TABLE `character_phase_data` ( CREATE TABLE `character_phase_data` (
`guid` int(11) NOT NULL, `guid` int(11) NOT NULL,
`map` smallint(6) NOT NULL, `map` smallint(6) NOT NULL,
`phase` int(11) NOT NULL, `phase` int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (`guid`) PRIMARY KEY (`guid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;

View file

@ -0,0 +1,3 @@
ALTER TABLE character_db_version CHANGE COLUMN required_0096_xxxxx_01_characters_characters required_0099_xxxxx_01_characters_character_phase_data bit;
ALTER TABLE `character_phase_data` CHANGE COLUMN `phase` `phase` int(11) NOT NULL DEFAULT 0 COMMENT '';

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 "0097" #define REVISION_NR "0099"
#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_0096_xxxxx_01_characters_characters" #define REVISION_DB_CHARACTERS "required_0096_xxxxx_01_characters_character_phase_data"
#define REVISION_DB_MANGOS "required_0083_12090_01_mangos_spell_template" #define REVISION_DB_MANGOS "required_0083_12090_01_mangos_spell_template"
#define REVISION_DB_REALMD "required_0014_xxxxx_01_realmd_account_access" #define REVISION_DB_REALMD "required_0014_xxxxx_01_realmd_account_access"
#endif // __REVISION_SQL_H__ #endif // __REVISION_SQL_H__