diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-01-17 08:35:35 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-01-17 08:35:35 +0100 |
commit | 393618dacb75c55fbf482e9ee5e368b852bfc6e7 (patch) | |
tree | 00fbf76a43db2ace0cae65f1fb47c95a2cf00583 /SQL/mssql.initial.sql | |
parent | b5b76d2ccb8e28183c078d242e1530508b2686ae (diff) | |
parent | c101871d463963fe5426a2db3ba39cb524a96dbd (diff) |
Merge branch 'schema_upgrades'
Diffstat (limited to 'SQL/mssql.initial.sql')
-rw-r--r-- | SQL/mssql.initial.sql | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/SQL/mssql.initial.sql b/SQL/mssql.initial.sql index 85b8e4ef6..e312cfbcd 100644 --- a/SQL/mssql.initial.sql +++ b/SQL/mssql.initial.sql @@ -115,6 +115,12 @@ CREATE TABLE [dbo].[searches] ( ) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
+CREATE TABLE [dbo].[system] (
+ [name] [varchar] (64) COLLATE Latin1_General_CI_AI NOT NULL ,
+ [value] [text] COLLATE Latin1_General_CI_AI NOT NULL
+) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
+GO
+
ALTER TABLE [dbo].[cache_index] WITH NOCHECK ADD
PRIMARY KEY CLUSTERED
(
@@ -185,6 +191,13 @@ ALTER TABLE [dbo].[searches] WITH NOCHECK ADD ) ON [PRIMARY]
GO
+ALTER TABLE [dbo].[system] WITH NOCHECK ADD
+ CONSTRAINT [PK_system_name] PRIMARY KEY CLUSTERED
+ (
+ [name]
+ ) ON [PRIMARY]
+GO
+
ALTER TABLE [dbo].[cache] ADD
CONSTRAINT [DF_cache_user_id] DEFAULT ('0') FOR [user_id],
CONSTRAINT [DF_cache_cache_key] DEFAULT ('') FOR [cache_key],
@@ -358,3 +371,6 @@ CREATE TRIGGER [contact_delete_member] ON [dbo].[contacts] WHERE [contact_id] IN (SELECT [contact_id] FROM deleted)
GO
+INSERT INTO [dbo].[system] ([name], [value]) VALUES ('roundcube-version', '2013011000.sql')
+GO
+
\ No newline at end of file |