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/postgres.initial.sql | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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

diff --git a/SQL/postgres.initial.sql b/SQL/postgres.initial.sql
index ebd504d0d..bf82b9b5d 100755
--- a/SQL/postgres.initial.sql
+++ b/SQL/postgres.initial.sql
@@ -167,4 +167,4 @@ CREATE TABLE "messages" (
     structure text
 );
 
-ALTER TABLE "messages" ADD UNIQUE (cache_key, uid);
+ALTER TABLE "messages" ADD UNIQUE (user_id, cache_key, uid);
-- 
cgit v1.2.3

