From 38951c987622eacfc269478e0a2e724645cd4f84 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 4 Sep 2024 12:14:21 +0200 Subject: [PATCH] fixes #2208 reduce sessions.id length below 1000 bytes --- install/db/172-database.php | 20 ++++++++++++++++++++ install/piwigo_structure-mysql.sql | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 install/db/172-database.php diff --git a/install/db/172-database.php b/install/db/172-database.php new file mode 100644 index 000000000..9c7146e33 --- /dev/null +++ b/install/db/172-database.php @@ -0,0 +1,20 @@ + diff --git a/install/piwigo_structure-mysql.sql b/install/piwigo_structure-mysql.sql index ebd7a5898..664f0836e 100644 --- a/install/piwigo_structure-mysql.sql +++ b/install/piwigo_structure-mysql.sql @@ -334,7 +334,7 @@ CREATE TABLE `piwigo_search` ( DROP TABLE IF EXISTS `piwigo_sessions`; CREATE TABLE `piwigo_sessions` ( - `id` varchar(255) binary NOT NULL default '', + `id` varchar(50) binary NOT NULL default '', `data` mediumtext NOT NULL, `expiration` datetime NOT NULL default '1970-01-01 00:00:00', PRIMARY KEY (`id`)