summaryrefslogtreecommitdiff
path: root/SQL/mssql.upgrade.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-06 13:00:12 +0000
committeralecpl <alec@alec.pl>2010-10-06 13:00:12 +0000
commitace511a771656c983046919333cee501339c98a1 (patch)
treee0cf919256f349da6ee939f582fd04428cc8d6d4 /SQL/mssql.upgrade.sql
parentfec0704423075a1a5199d1c455a3ee0f7ea00ab3 (diff)
- Add unique index on users.username+users.mail_host
Diffstat (limited to 'SQL/mssql.upgrade.sql')
-rw-r--r--SQL/mssql.upgrade.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/SQL/mssql.upgrade.sql b/SQL/mssql.upgrade.sql
index 1aa771b1f..6b3cd6d03 100644
--- a/SQL/mssql.upgrade.sql
+++ b/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
+