summaryrefslogtreecommitdiff
path: root/SQL/mysql.update.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-02-23 08:13:02 +0000
committeralecpl <alec@alec.pl>2011-02-23 08:13:02 +0000
commit3a5476d150419b46847dd922935f368c969519c1 (patch)
tree145ed6817352cb843c1ea7467eed24e81091418f /SQL/mysql.update.sql
parent5744bfa54de0baacbf788bc30aacce3cd1089b9c (diff)
- Add index on contactgroupmembers.contact_id column.
Improves performance and fixes problem with contactgroupmembers table creation on MySQL 4.x
Diffstat (limited to 'SQL/mysql.update.sql')
-rw-r--r--SQL/mysql.update.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql
index f6c8d7869..d30f037c6 100644
--- a/SQL/mysql.update.sql
+++ b/SQL/mysql.update.sql
@@ -136,3 +136,5 @@ TRUNCATE TABLE `messages`;
-- Updates from version 0.5.*
ALTER TABLE `contacts` ADD `words` TEXT NULL AFTER `vcard`;
+ALTER TABLE `contactgroupmembers` ADD INDEX `contactgroupmembers_contact_index` (`contact_id`);
+ \ No newline at end of file