diff options
author | alecpl <alec@alec.pl> | 2009-09-29 07:59:25 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-09-29 07:59:25 +0000 |
commit | 23b76563dcc2542cff9f447e809462472cfccd88 (patch) | |
tree | 58416e08676b468a04a21b8c2a9a945a5a60b7a9 /SQL/mysql.update.sql | |
parent | 05d18da660b7b792ee750698b9c10ada2a60a4b5 (diff) |
- use better index for contacts table
Diffstat (limited to 'SQL/mysql.update.sql')
-rw-r--r-- | SQL/mysql.update.sql | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql index 729fd3c66..77bf317e9 100644 --- a/SQL/mysql.update.sql +++ b/SQL/mysql.update.sql @@ -54,3 +54,6 @@ TRUNCATE `messages`; ALTER TABLE `session` CHANGE `vars` `vars` MEDIUMTEXT NOT NULL; + +ALTER TABLE `contacts` + ADD INDEX `user_contacts_index` (`user_id`,`email`); |