Permalink
Browse files

Fix DDL update from 0.7 for MS SQL Server

  • Loading branch information...
alecpl committed Jun 10, 2012
1 parent 2c48c19 commit 64584be909914b8eb3fa0e1e8681b6883ba25244
Showing with 4 additions and 0 deletions.
  1. +4 −0 SQL/mssql.upgrade.sql
View
@@ -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

0 comments on commit 64584be

Please sign in to comment.