From b2022b9cf3331dfd8af14fbcf0abbab1af758721 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 12 Sep 2012 21:13:44 +0200 Subject: [PATCH] SQL definition of new field cache_rating.rating_date --- htdocs/doc/sql/tables/cache_rating.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/doc/sql/tables/cache_rating.sql b/htdocs/doc/sql/tables/cache_rating.sql index 50656b1d..50968c5d 100644 --- a/htdocs/doc/sql/tables/cache_rating.sql +++ b/htdocs/doc/sql/tables/cache_rating.sql @@ -3,6 +3,8 @@ DROP TABLE IF EXISTS `cache_rating`; CREATE TABLE `cache_rating` ( `cache_id` int(10) unsigned NOT NULL, `user_id` int(10) unsigned NOT NULL, + `rating_date` datetime NOT NULL, PRIMARY KEY (`cache_id`,`user_id`), - KEY `user_id` (`user_id`,`cache_id`) + KEY `user_id` (`user_id`,`cache_id`), + KEY `date` (`rating_date`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ;