diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2012-06-11 10:20:53 +0200 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2012-06-11 10:20:53 +0200 |
commit | 2950ce49eff42eb08cd4363975a3292692cbccd8 (patch) | |
tree | 2ac6b3b9a4daa1a484281b8021ea5c66333b0e34 /SQL/mssql.upgrade.sql | |
parent | d447a4f2296e5e9afc9d79cede0e49b2d6210f9f (diff) | |
parent | 7ac99af37b3b761b4daf2f0d9340c17e7855c234 (diff) |
Merge branch 'master' of github.com:roundcube/roundcubemail
Diffstat (limited to 'SQL/mssql.upgrade.sql')
-rw-r--r-- | SQL/mssql.upgrade.sql | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/SQL/mssql.upgrade.sql b/SQL/mssql.upgrade.sql index d4a5e41ce..d111ef3e7 100644 --- a/SQL/mssql.upgrade.sql +++ b/SQL/mssql.upgrade.sql @@ -246,6 +246,19 @@ 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
+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 |