mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #2016 remove search.last_seen, never really used
This commit is contained in:
21
install/db/169-database.php
Normal file
21
install/db/169-database.php
Normal file
@@ -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