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

---
 SQL/mysql.update.sql |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/SQL/mysql.update.sql b/SQL/mysql.update.sql
index 3080832..ef5f07d 100644
--- a/SQL/mysql.update.sql
+++ b/SQL/mysql.update.sql
@@ -5,7 +5,7 @@
   DROP `body`,
   DROP INDEX `cache_key`,
   ADD `structure` TEXT,
-  ADD UNIQUE `uniqueness` (`cache_key`, `uid`);
+  ADD UNIQUE `uniqueness` (`user_id`, `cache_key`, `uid`);
 
 ALTER TABLE `identities`
   ADD `html_signature` tinyint(1) default 0 NOT NULL;

--
Gitblit v1.9.1