From 14678d28a9f2ffbe844212b41ae2b25eaeea1656 Mon Sep 17 00:00:00 2001 From: plegall Date: Thu, 5 Sep 2024 10:45:34 +0200 Subject: [PATCH] fixes #942 IPv6 compatibility, increase length of history.IP --- install/db/173-database.php | 20 ++++++++++++++++++++ install/piwigo_structure-mysql.sql | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 install/db/173-database.php diff --git a/install/db/173-database.php b/install/db/173-database.php new file mode 100644 index 000000000..2ff3c59b5 --- /dev/null +++ b/install/db/173-database.php @@ -0,0 +1,20 @@ + diff --git a/install/piwigo_structure-mysql.sql b/install/piwigo_structure-mysql.sql index 664f0836e..ca47a8420 100644 --- a/install/piwigo_structure-mysql.sql +++ b/install/piwigo_structure-mysql.sql @@ -143,7 +143,7 @@ CREATE TABLE `piwigo_history` ( `date` date NOT NULL default '1970-01-01', `time` time NOT NULL default '00:00:00', `user_id` mediumint(8) unsigned NOT NULL default '0', - `IP` varchar(15) NOT NULL default '', + `IP` char(39) 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,