summaryrefslogtreecommitdiff
path: root/SQL/mssql.upgrade.sql
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-08-06 11:08:58 +0200
committerAleksander Machniak <alec@alec.pl>2012-08-06 11:08:58 +0200
commit565c472918e7f9707cd8d7909ad5dbcc5a921fdf (patch)
tree8c4c40ab241766d931c69ee3ddcca5b3511cc800 /SQL/mssql.upgrade.sql
parent83121ece3348bfe09bb1026eace79a74a5ccf2c9 (diff)
Removed users.alias column, added option ('user_aliases')
to use email address from identities as username (#1488581)
Diffstat (limited to 'SQL/mssql.upgrade.sql')
-rw-r--r--SQL/mssql.upgrade.sql9
1 files changed, 9 insertions, 0 deletions
diff --git a/SQL/mssql.upgrade.sql b/SQL/mssql.upgrade.sql
index d111ef3e7..26001e713 100644
--- a/SQL/mssql.upgrade.sql
+++ b/SQL/mssql.upgrade.sql
@@ -261,4 +261,13 @@ ALTER TABLE [dbo].[contacts] ALTER COLUMN [email] [varchar] (8000) COLLATE Latin
GO
ALTER TABLE [dbo].[contacts] ADD CONSTRAINT [DF_contacts_email] DEFAULT ('') FOR [email]
GO
+
+-- Updates from version 0.8
+
+ALTER TABLE [dbo].[cache] DROP COLUMN [cache_id]
+GO
+ALTER TABLE [dbo].[users] DROP COLUMN [alias]
+GO
+CREATE INDEX [IX_identities_email] ON [dbo].[identities]([email],[del]) ON [PRIMARY]
+GO
\ No newline at end of file