summaryrefslogtreecommitdiff
path: root/SQL
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-06-10 10:13:47 +0200
committerAleksander Machniak <alec@alec.pl>2012-06-10 10:15:07 +0200
commit64584be909914b8eb3fa0e1e8681b6883ba25244 (patch)
treef5fe0a07ee078edee9eb84bc529d7c2c421ea321 /SQL
parent2c48c19387dad1a85f6735848ea9542be9d33413 (diff)
Fix DDL update from 0.7 for MS SQL Server
Diffstat (limited to 'SQL')
-rw-r--r--SQL/mssql.upgrade.sql4
1 files changed, 4 insertions, 0 deletions
diff --git a/SQL/mssql.upgrade.sql b/SQL/mssql.upgrade.sql
index 10bae6e47..d111ef3e7 100644
--- a/SQL/mssql.upgrade.sql
+++ b/SQL/mssql.upgrade.sql
@@ -246,8 +246,12 @@ GO
-- Updates from version 0.7
+ALTER TABLE [dbo].[contacts] DROP CONSTRAINT [DF_contacts_email]
+GO
ALTER TABLE [dbo].[contacts] ALTER COLUMN [email] [text] COLLATE Latin1_General_CI_AI NOT NULL
GO
+ALTER TABLE [dbo].[contacts] ADD CONSTRAINT [DF_contacts_email] DEFAULT ('') FOR [email]
+GO
-- Updates from version 0.8-rc