[10568] Drop unused column 'realmid' from the table 'character_tutorial'

This commit is contained in:
DasBlub 2010-09-30 22:50:34 +02:00
parent a383494eb7
commit f3903d2261
5 changed files with 12 additions and 6 deletions

View file

@ -21,7 +21,7 @@
DROP TABLE IF EXISTS `character_db_version`;
CREATE TABLE `character_db_version` (
`required_10503_02_characters_gameobject_respawn` bit(1) default NULL
`required_10568_01_characters_character_tutorial` bit(1) default NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
--
@ -964,7 +964,6 @@ UNLOCK TABLES;
DROP TABLE IF EXISTS `character_tutorial`;
CREATE TABLE `character_tutorial` (
`account` bigint(20) unsigned NOT NULL auto_increment COMMENT 'Account Identifier',
`realmid` int(11) unsigned NOT NULL default '0' COMMENT 'Realm Identifier',
`tut0` int(11) unsigned NOT NULL default '0',
`tut1` int(11) unsigned NOT NULL default '0',
`tut2` int(11) unsigned NOT NULL default '0',
@ -973,8 +972,7 @@ CREATE TABLE `character_tutorial` (
`tut5` int(11) unsigned NOT NULL default '0',
`tut6` int(11) unsigned NOT NULL default '0',
`tut7` int(11) unsigned NOT NULL default '0',
PRIMARY KEY (`account`,`realmid`),
KEY acc_key (`account`)
PRIMARY KEY (`account`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
--

View file

@ -0,0 +1,6 @@
ALTER TABLE character_db_version CHANGE COLUMN required_10503_02_characters_gameobject_respawn required_10568_01_characters_character_tutorial bit;
ALTER TABLE `character_tutorial` DROP PRIMARY KEY;
ALTER TABLE `character_tutorial` DROP COLUMN `realmid`;
ALTER TABLE `character_tutorial` ADD PRIMARY KEY (`account`);
ALTER TABLE `character_tutorial` DROP KEY `acc_key`;

View file

@ -103,6 +103,7 @@ pkgdata_DATA = \
10503_04_mangos_gameobject_respawn.sql \
10537_01_mangos_command.sql \
10551_01_mangos_spell_proc_event.sql \
10568_01_characters_character_tutorial.sql \
README
## Additional files to include when running 'make dist'
@ -186,4 +187,5 @@ EXTRA_DIST = \
10503_04_mangos_gameobject_respawn.sql \
10537_01_mangos_command.sql \
10551_01_mangos_spell_proc_event.sql \
10568_01_characters_character_tutorial.sql \
README

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10567"
#define REVISION_NR "10568"
#endif // __REVISION_NR_H__

View file

@ -1,6 +1,6 @@
#ifndef __REVISION_SQL_H__
#define __REVISION_SQL_H__
#define REVISION_DB_CHARACTERS "required_10503_02_characters_gameobject_respawn"
#define REVISION_DB_CHARACTERS "required_10568_01_characters_character_tutorial"
#define REVISION_DB_MANGOS "required_10551_01_mangos_spell_proc_event"
#define REVISION_DB_REALMD "required_10008_01_realmd_realmd_db_version"
#endif // __REVISION_SQL_H__