- Added index on cache.created + small fixes in mssql DDL script

This commit is contained in:
alecpl
2008-11-24 07:59:10 +00:00
parent ae9124d3a9
commit e4d9f05e41
8 changed files with 20 additions and 2 deletions

View File

@@ -73,6 +73,7 @@ CREATE TABLE `cache` (
`data` longtext NOT NULL,
`user_id` int(10) UNSIGNED NOT NULL DEFAULT '0',
PRIMARY KEY(`cache_id`),
INDEX `created_index` (`created`),
INDEX `user_cache_index` (`user_id`,`cache_key`),
CONSTRAINT `user_id_fk_cache` FOREIGN KEY (`user_id`)
REFERENCES `users`(`user_id`)