From 058cac7b020c1fff4985cf92316c40002d4e5fe9 Mon Sep 17 00:00:00 2001
From: alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>
Date: Wed, 6 Oct 2010 13:00:12 +0000
Subject: - Add unique index on users.username+users.mail_host

git-svn-id: https://svn.roundcube.net/trunk@4053 208e9e7b-5314-0410-a742-e7e81cd9613c
---
 roundcubemail/SQL/mssql.upgrade.sql | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'roundcubemail/SQL/mssql.upgrade.sql')

diff --git a/roundcubemail/SQL/mssql.upgrade.sql b/roundcubemail/SQL/mssql.upgrade.sql
index 1aa771b1f..6b3cd6d03 100644
--- a/roundcubemail/SQL/mssql.upgrade.sql
+++ b/roundcubemail/SQL/mssql.upgrade.sql
@@ -87,3 +87,10 @@ ALTER TABLE [dbo].[contactgroups] ADD CONSTRAINT [FK_contactgroups_user_id]
     ON DELETE CASCADE ON UPDATE CASCADE
 GO
 
+-- Updates from version 0.4.2
+
+DROP INDEX [IX_users_username]
+GO
+CREATE UNIQUE INDEX [IX_users_username] ON [dbo].[users]([username],[mail_host]) ON [PRIMARY]
+GO
+
-- 
cgit v1.2.3

