diff options
Diffstat (limited to 'SQL/mssql.upgrade.sql')
-rw-r--r-- | SQL/mssql.upgrade.sql | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/SQL/mssql.upgrade.sql b/SQL/mssql.upgrade.sql index d4a5e41ce..10bae6e47 100644 --- a/SQL/mssql.upgrade.sql +++ b/SQL/mssql.upgrade.sql @@ -249,3 +249,12 @@ GO ALTER TABLE [dbo].[contacts] ALTER COLUMN [email] [text] COLLATE Latin1_General_CI_AI NOT NULL
GO
+-- Updates from version 0.8-rc
+
+ALTER TABLE [dbo].[contacts] DROP CONSTRAINT [DF_contacts_email]
+GO
+ALTER TABLE [dbo].[contacts] ALTER COLUMN [email] [varchar] (8000) COLLATE Latin1_General_CI_AI NOT NULL
+GO
+ALTER TABLE [dbo].[contacts] ADD CONSTRAINT [DF_contacts_email] DEFAULT ('') FOR [email]
+GO
+
\ No newline at end of file |