From f328dd14bba142c256dbd2ff47713ec6813c07c2 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 14 Feb 2006 01:14:31 +0000 Subject: feature 251: Rating For Anonymous users fix: page['items'] for favorites category and remove old use of $has_next, $has_prev in picture.php (slideshow and favorites section) optimization: one less sql query in picture.php when there are no comments display of the refresh url in redirect.tpl (useful when debugging with browser meta redirects disabled) git-svn-id: http://piwigo.org/svn/trunk@1041 68402e56-0260-453c-a942-63ccdbb3a9ee --- install/db/7-database.php | 70 +++++++++++++++++++++++++++++++++++++ install/phpwebgallery_structure.sql | 4 ++- 2 files changed, 73 insertions(+), 1 deletion(-) create mode 100644 install/db/7-database.php (limited to 'install') diff --git a/install/db/7-database.php b/install/db/7-database.php new file mode 100644 index 000000000..5ad118506 --- /dev/null +++ b/install/db/7-database.php @@ -0,0 +1,70 @@ + diff --git a/install/phpwebgallery_structure.sql b/install/phpwebgallery_structure.sql index 30ea8b0bd..cc8608afe 100644 --- a/install/phpwebgallery_structure.sql +++ b/install/phpwebgallery_structure.sql @@ -173,8 +173,10 @@ DROP TABLE IF EXISTS `phpwebgallery_rate`; CREATE TABLE `phpwebgallery_rate` ( `user_id` smallint(5) NOT NULL default '0', `element_id` mediumint(8) unsigned NOT NULL default '0', + `anonymous_id` varchar(45) NOT NULL default '', `rate` tinyint(2) unsigned NOT NULL default '0', - PRIMARY KEY (`user_id`,`element_id`) + `date` date NOT NULL default '0000-00-00', + PRIMARY KEY (`element_id`,`user_id`,`anonymous_id`) ) TYPE=MyISAM; -- -- cgit v1.2.3