summaryrefslogtreecommitdiff
path: root/SQL/mssql.upgrade.sql
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-09-19 06:15:58 +0000
committeralecpl <alec@alec.pl>2011-09-19 06:15:58 +0000
commit7b2bf71c332563517b8f0f30c6f214913dc4169e (patch)
treeb1a02f541458ca09e7f45d74bbbb015c72841eff /SQL/mssql.upgrade.sql
parent609d3923d7dc674263ddea990387dbf5488fabc6 (diff)
- Add lost cache_index.valid column definition
Diffstat (limited to 'SQL/mssql.upgrade.sql')
-rw-r--r--SQL/mssql.upgrade.sql4
1 files changed, 3 insertions, 1 deletions
diff --git a/SQL/mssql.upgrade.sql b/SQL/mssql.upgrade.sql
index 3def890bd..b506e5d96 100644
--- a/SQL/mssql.upgrade.sql
+++ b/SQL/mssql.upgrade.sql
@@ -157,6 +157,7 @@ CREATE TABLE [dbo].[cache_index] (
[user_id] [int] NOT NULL ,
[mailbox] [varchar] (128) COLLATE Latin1_General_CI_AI NOT NULL ,
[changed] [datetime] NOT NULL ,
+ [valid] [char] (1) COLLATE Latin1_General_CI_AI NOT NULL ,
[data] [text] COLLATE Latin1_General_CI_AI NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
@@ -201,7 +202,8 @@ ALTER TABLE [dbo].[cache_messages] WITH NOCHECK ADD
GO
ALTER TABLE [dbo].[cache_index] ADD
- CONSTRAINT [DF_cache_index_changed] DEFAULT (getdate()) FOR [changed]
+ CONSTRAINT [DF_cache_index_changed] DEFAULT (getdate()) FOR [changed],
+ CONSTRAINT [DF_cache_index_valid] DEFAULT ('0') FOR [valid]
GO
CREATE INDEX [IX_cache_index_user_id] ON [dbo].[cache_index]([user_id]) ON [PRIMARY]