- use better index for contacts table

This commit is contained in:
alecpl
2009-09-29 07:59:25 +00:00
parent 05d18da660
commit 23b76563dc
6 changed files with 10 additions and 2 deletions

View File

@@ -95,6 +95,7 @@ CREATE TABLE `contacts` (
`vcard` text NULL,
`user_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY(`contact_id`),
INDEX `user_contacts_index` (`user_id`,`email`),
CONSTRAINT `user_id_fk_contacts` FOREIGN KEY (`user_id`)
REFERENCES `users`(`user_id`)
/*!40008