summaryrefslogtreecommitdiff
path: root/SQL/mysql5.initial.sql
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2007-03-18 17:11:43 +0000
committerthomascube <thomas@roundcube.net>2007-03-18 17:11:43 +0000
commit43a42dcf405c1667f0f39150ffaa8bbda7d9d1a0 (patch)
tree0b9a855683c47e3b27da1e2634ea496a5ee7df20 /SQL/mysql5.initial.sql
parent87b280e94be4d4389ef660ab60d0484361599d35 (diff)
Use user_id for unique key in messages table (closes #1484074)
Diffstat (limited to 'SQL/mysql5.initial.sql')
-rw-r--r--SQL/mysql5.initial.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/SQL/mysql5.initial.sql b/SQL/mysql5.initial.sql
index ee6fc3352..ae155e1d0 100644
--- a/SQL/mysql5.initial.sql
+++ b/SQL/mysql5.initial.sql
@@ -55,7 +55,7 @@ CREATE TABLE `messages` (
PRIMARY KEY(`message_id`),
INDEX `idx`(`idx`),
INDEX `uid`(`uid`),
- UNIQUE `uniqueness` (`cache_key`, `uid`),
+ UNIQUE `uniqueness` (`user_id`, `cache_key`, `uid`),
CONSTRAINT `User_ID_FK_messages` FOREIGN KEY (`user_id`)
REFERENCES `users`(`user_id`)
ON DELETE CASCADE