server/sql/updates/8332_01_realmd_realmcharacters.sql
rilex 175d1c5551 [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>
2009-08-09 01:49:59 +04:00

4 lines
170 B
SQL

ALTER TABLE realmd_db_version CHANGE COLUMN required_7938_01_realmd_account required_8332_01_realmd_realmcharacters bit;
ALTER TABLE realmcharacters
ADD KEY (acctid);