summaryrefslogtreecommitdiff
path: root/installer/install.sql
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2010-02-22 00:30:54 -0800
committerAndy Staudacher <andy.st@gmail.com>2010-02-22 00:30:54 -0800
commit6ce01328422cc587dedf555d0ba3eb8a0ee05a9f (patch)
tree01f7d738e89b732b99c3cc735f0f822c84a2aeb6 /installer/install.sql
parent95374070db74362bc1481e3fdcdab0d89678c1bc (diff)
Fix for ticket #1027: Add index on cache key column.
(and fix the packager to truncate the cache table before packaging)
Diffstat (limited to 'installer/install.sql')
-rw-r--r--installer/install.sql3
1 files changed, 2 insertions, 1 deletions
diff --git a/installer/install.sql b/installer/install.sql
index 28a9caa5..ebe3651d 100644
--- a/installer/install.sql
+++ b/installer/install.sql
@@ -42,6 +42,7 @@ CREATE TABLE {caches} (
`expiration` int(9) NOT NULL,
`cache` longblob,
PRIMARY KEY (`id`),
+ KEY `key` (`key`),
KEY `tags` (`tags`)
) DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
@@ -239,7 +240,7 @@ CREATE TABLE {modules} (
UNIQUE KEY `name` (`name`)
) AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
SET character_set_client = @saved_cs_client;
-INSERT INTO {modules} VALUES (1,1,'gallery',29);
+INSERT INTO {modules} VALUES (1,1,'gallery',30);
INSERT INTO {modules} VALUES (2,1,'user',3);
INSERT INTO {modules} VALUES (3,1,'comment',2);
INSERT INTO {modules} VALUES (4,1,'organize',1);