mirror of
https://github.com/mangosfour/server.git
synced 2026-01-27 22:37:09 +00:00
[8332] Add non-unique key accid for realmcharacters table for speedup queries by this field.
Just note about related _not_ mangos bug: this table _expected_ to have primary key by pair (`realmid`,`acctid`). If used DB not have it for table, then this wrongly setup of DB. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
4e2536df45
commit
175d1c5551
4 changed files with 10 additions and 3 deletions
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
DROP TABLE IF EXISTS `realmd_db_version`;
|
||||
CREATE TABLE `realmd_db_version` (
|
||||
`required_7938_01_realmd_account` bit(1) default NULL
|
||||
`required_8332_01_realmd_realmcharacters` bit(1) default NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Last applied sql update to DB';
|
||||
|
||||
--
|
||||
|
|
@ -133,7 +133,8 @@ CREATE TABLE `realmcharacters` (
|
|||
`realmid` int(11) unsigned NOT NULL default '0',
|
||||
`acctid` bigint(20) unsigned NOT NULL,
|
||||
`numchars` tinyint(3) unsigned NOT NULL default '0',
|
||||
PRIMARY KEY (`realmid`,`acctid`)
|
||||
PRIMARY KEY (`realmid`,`acctid`),
|
||||
KEY (acctid)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='Realm Character Tracker';
|
||||
|
||||
--
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue