mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[9751] Add index by spell to character_spell
This is must fix porblem with long logins at many broken spells in `character_spell` after client switch/etc.
This commit is contained in:
parent
ef979daddc
commit
b31c006bdc
5 changed files with 10 additions and 4 deletions
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
DROP TABLE IF EXISTS `character_db_version`;
|
||||
CREATE TABLE `character_db_version` (
|
||||
`required_9702_01_characters_item` bit(1) default NULL
|
||||
`required_9751_01_characters` bit(1) default NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
|
||||
|
||||
--
|
||||
|
|
@ -816,7 +816,8 @@ CREATE TABLE `character_spell` (
|
|||
`spell` int(11) unsigned NOT NULL default '0' COMMENT 'Spell Identifier',
|
||||
`active` tinyint(3) unsigned NOT NULL default '1',
|
||||
`disabled` tinyint(3) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`guid`,`spell`)
|
||||
PRIMARY KEY (`guid`,`spell`),
|
||||
KEY `Idx_spell` (`spell`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Player System';
|
||||
|
||||
--
|
||||
|
|
|
|||
3
sql/updates/9751_01_characters.sql
Normal file
3
sql/updates/9751_01_characters.sql
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE character_db_version CHANGE COLUMN required_9702_01_characters_item required_9751_01_characters bit;
|
||||
|
||||
ALTER TABLE `character_spell` ADD KEY `Idx_spell` (`spell`);
|
||||
|
|
@ -121,6 +121,7 @@ pkgdata_DATA = \
|
|||
9746_01_realmd_realmlist.sql \
|
||||
9747_01_mangos_battleground_template.sql \
|
||||
9748_01_realmd_realmlist.sql \
|
||||
9751_01_characters.sql \
|
||||
README
|
||||
|
||||
## Additional files to include when running 'make dist'
|
||||
|
|
@ -222,4 +223,5 @@ EXTRA_DIST = \
|
|||
9746_01_realmd_realmlist.sql \
|
||||
9747_01_mangos_battleground_template.sql \
|
||||
9748_01_realmd_realmlist.sql \
|
||||
9751_01_characters.sql \
|
||||
README
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "9750"
|
||||
#define REVISION_NR "9751"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#ifndef __REVISION_SQL_H__
|
||||
#define __REVISION_SQL_H__
|
||||
#define REVISION_DB_CHARACTERS "required_9702_01_characters_item"
|
||||
#define REVISION_DB_CHARACTERS "required_9751_01_characters"
|
||||
#define REVISION_DB_MANGOS "required_9747_01_mangos_battleground_template"
|
||||
#define REVISION_DB_REALMD "required_9748_01_realmd_realmlist"
|
||||
#endif // __REVISION_SQL_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue