mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
issue #2016 save search in history
This commit is contained in:
20
install/db/168-database.php
Normal file
20
install/db/168-database.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | This file is part of Piwigo. |
|
||||
// | |
|
||||
// | For copyright and license information, please view the COPYING.txt |
|
||||
// | file that was distributed with this source code. |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
if (!defined('PHPWG_ROOT_PATH'))
|
||||
{
|
||||
die('Hacking attempt!');
|
||||
}
|
||||
|
||||
$upgrade_description = 'Create new column search_id in visits history table.';
|
||||
|
||||
pwg_query('ALTER TABLE `'.PREFIX_TABLE.'history` ADD COLUMN `search_id` int(10) unsigned default NULL AFTER `category_id`;');
|
||||
|
||||
echo "\n".$upgrade_description."\n";
|
||||
|
||||
?>
|
||||
@@ -146,6 +146,7 @@ CREATE TABLE `piwigo_history` (
|
||||
`IP` varchar(15) NOT NULL default '',
|
||||
`section` enum('categories','tags','search','list','favorites','most_visited','best_rated','recent_pics','recent_cats') default NULL,
|
||||
`category_id` smallint(5) default NULL,
|
||||
`search_id` int(10) unsigned default NULL,
|
||||
`tag_ids` varchar(50) default NULL,
|
||||
`image_id` mediumint(8) default NULL,
|
||||
`image_type` enum('picture','high','other') default NULL,
|
||||
|
||||
Reference in New Issue
Block a user