aboutsummaryrefslogtreecommitdiff
path: root/sql/updates
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-09 15:35:46 -0500
committermegamage <none@none>2009-08-09 15:35:46 -0500
commit8fb63dc91c87d20a5b56c9c57b09e29779f8cd71 (patch)
tree07bfa3d258ec3bc939b15811157e9d8e2ef17677 /sql/updates
parent3eb938b8de6cefc39dfe3ed8a0001279c42002ee (diff)
[8332] Add non-unique key `accid` for `realmcharacters` table for speedup queries by this field. Author: rilex
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. --HG-- branch : trunk
Diffstat (limited to 'sql/updates')
-rw-r--r--sql/updates/4859_8332_01_realmd_realmcharacters.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/updates/4859_8332_01_realmd_realmcharacters.sql b/sql/updates/4859_8332_01_realmd_realmcharacters.sql
new file mode 100644
index 00000000000..c7adb23d890
--- /dev/null
+++ b/sql/updates/4859_8332_01_realmd_realmcharacters.sql
@@ -0,0 +1,4 @@
+-- ALTER TABLE realmd_db_version CHANGE COLUMN required_7938_01_realmd_account required_8332_01_realmd_realmcharacters bit;
+
+ALTER TABLE realmcharacters
+ ADD KEY (acctid);