From 43a42dcf405c1667f0f39150ffaa8bbda7d9d1a0 Mon Sep 17 00:00:00 2001
From: thomascube <thomas@roundcube.net>
Date: Sun, 18 Mar 2007 17:11:43 +0000
Subject: Use user_id for unique key in messages table (closes #1484074)

---
 SQL/mysql.initial.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'SQL/mysql.initial.sql')

diff --git a/SQL/mysql.initial.sql b/SQL/mysql.initial.sql
index f49fd7084..c97b9d79e 100644
--- a/SQL/mysql.initial.sql
+++ b/SQL/mysql.initial.sql
@@ -122,7 +122,7 @@ CREATE TABLE `messages` (
   KEY `user_id` (`user_id`),
   KEY `idx` (`idx`),
   KEY `uid` (`uid`),
-  UNIQUE `uniqueness` (`cache_key`, `uid`)
+  UNIQUE `uniqueness` (`user_id`, `cache_key`, `uid`)
 );
 
 
-- 
cgit v1.2.3

