From 426c20d46b1107578b599b4cfd9d0d959f881862 Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 2 Oct 2023 14:55:33 +0200 Subject: [PATCH] fixes #2016 remove search.last_seen, never really used --- include/functions_search.inc.php | 1 - install/db/169-database.php | 21 +++++++++++++++++++++ install/piwigo_structure-mysql.sql | 1 - 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 install/db/169-database.php diff --git a/include/functions_search.inc.php b/include/functions_search.inc.php index c4dd5cd73..103a7b692 100644 --- a/include/functions_search.inc.php +++ b/include/functions_search.inc.php @@ -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, ) ); diff --git a/install/db/169-database.php b/install/db/169-database.php new file mode 100644 index 000000000..7b3d3f7ac --- /dev/null +++ b/install/db/169-database.php @@ -0,0 +1,21 @@ + diff --git a/install/piwigo_structure-mysql.sql b/install/piwigo_structure-mysql.sql index 9072ae601..ebd7a5898 100644 --- a/install/piwigo_structure-mysql.sql +++ b/install/piwigo_structure-mysql.sql @@ -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;