fixes #2208 reduce sessions.id length below 1000 bytes

This commit is contained in:
plegall
2024-09-04 12:14:21 +02:00
parent 9d4b2a6693
commit 38951c9876
2 changed files with 21 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
<?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 = 'reduce sessions.id length to 50 chars';
$query = 'ALTER TABLE `'.PREFIX_TABLE.'sessions` CHANGE `id` `id` varchar(50) binary NOT NULL default \'\';';
pwg_query($query);
echo "\n".$upgrade_description."\n";
?>