diff options
author | alecpl <alec@alec.pl> | 2011-09-19 06:15:58 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-09-19 06:15:58 +0000 |
commit | 7b2bf71c332563517b8f0f30c6f214913dc4169e (patch) | |
tree | b1a02f541458ca09e7f45d74bbbb015c72841eff /SQL/mssql.initial.sql | |
parent | 609d3923d7dc674263ddea990387dbf5488fabc6 (diff) |
- Add lost cache_index.valid column definition
Diffstat (limited to 'SQL/mssql.initial.sql')
-rw-r--r-- | SQL/mssql.initial.sql | 5 |
1 files changed, 3 insertions, 2 deletions
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
|