From 7b2bf71c332563517b8f0f30c6f214913dc4169e Mon Sep 17 00:00:00 2001
From: alecpl <alec@alec.pl>
Date: Mon, 19 Sep 2011 06:15:58 +0000
Subject: - Add lost cache_index.valid column definition

---
 SQL/mssql.initial.sql | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'SQL/mssql.initial.sql')

diff --git a/SQL/mssql.initial.sql b/SQL/mssql.initial.sql
index b3bb1c8b8..a8d1a0b89 100644
--- a/SQL/mssql.initial.sql
+++ b/SQL/mssql.initial.sql
@@ -210,7 +210,8 @@ CREATE  INDEX [IX_cache_created] ON [dbo].[cache]([created]) ON [PRIMARY]
 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]
@@ -224,7 +225,7 @@ CREATE  INDEX [IX_cache_thread_user_id] ON [dbo].[cache_thread]([user_id]) ON [P
 GO
 
 ALTER TABLE [dbo].[cache_messages] ADD 
-	CONSTRAINT [DF_cache_messages_changed] DEFAULT (getdate()) FOR [changed]
+	CONSTRAINT [DF_cache_messages_changed] DEFAULT (getdate()) FOR [changed],
 	CONSTRAINT [DF_cache_messages_flags] DEFAULT (0) FOR [flags],
 GO
 
-- 
cgit v1.2.3

