mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-11 11:13:02 +02:00
fixes #2016 remove search.last_seen, never really used
This commit is contained in:
@@ -1753,7 +1753,6 @@ function save_search($rules, $forked_from=null)
|
||||
'created_on' => $dbnow,
|
||||
'created_by' => $user['user_id'],
|
||||
'search_uuid' => $search_uuid,
|
||||
'last_seen' => $dbnow,
|
||||
'forked_from' => $forked_from,
|
||||
)
|
||||
);
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<?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 = 'Delete old column search.last_seen, never really used.';
|
||||
|
||||
pwg_query('UPDATE `'.PREFIX_TABLE.'search` SET `created_on` = `last_seen` where `created_on` IS NULL AND `last_seen` IS NOT NULL;');
|
||||
pwg_query('ALTER TABLE `'.PREFIX_TABLE.'search` DROP COLUMN `last_seen`;');
|
||||
|
||||
echo "\n".$upgrade_description."\n";
|
||||
|
||||
?>
|
||||
@@ -324,7 +324,6 @@ CREATE TABLE `piwigo_search` (
|
||||
`created_on` DATETIME DEFAULT NULL,
|
||||
`created_by` MEDIUMINT(8) UNSIGNED,
|
||||
`forked_from` INT(10) UNSIGNED,
|
||||
`last_seen` date default NULL,
|
||||
`rules` text,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM;
|
||||
|
||||
Reference in New Issue
Block a user