diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-05-25 15:37:46 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-05-25 15:37:46 +0200 |
commit | 50abd557184326f173357b50e7593dc3f452be91 (patch) | |
tree | dc5f097ba3eaac279e9f0021172e7dbbc878a706 /SQL/mssql | |
parent | a963a2b38cf571b29543d17edadc46f91caba3aa (diff) |
Added shared (cross-user) cache
Diffstat (limited to 'SQL/mssql')
-rw-r--r-- | SQL/mssql/2013052500.sql | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/SQL/mssql/2013052500.sql b/SQL/mssql/2013052500.sql new file mode 100644 index 000000000..6a7e31d46 --- /dev/null +++ b/SQL/mssql/2013052500.sql @@ -0,0 +1,17 @@ +CREATE TABLE [dbo].[cache_shared] (
+ [cache_key] [varchar] (255) COLLATE Latin1_General_CI_AI NOT NULL ,
+ [created] [datetime] NOT NULL ,
+ [data] [text] COLLATE Latin1_General_CI_AI NOT NULL
+) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
+GO
+
+ALTER TABLE [dbo].[cache_shared] ADD
+ CONSTRAINT [DF_cache_shared_created] DEFAULT (getdate()) FOR [created]
+GO
+
+CREATE INDEX [IX_cache_shared_cache_key] ON [dbo].[cache_shared]([cache_key]) ON [PRIMARY]
+GO
+
+CREATE INDEX [IX_cache_shared_created] ON [dbo].[cache_shared]([created]) ON [PRIMARY]
+GO
+
|