mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
* at the end of the upload of after a maximum duration, move the photos from the lounge to their actual categories. * do not invalidate user cache when photos are added in the lounge, thus avoiding to rebuild cache on every photo uploaded * the lounge system activates itself only beyond 50k (by default) photo
27 lines
847 B
PHP
27 lines
847 B
PHP
<?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 = 'add lounge table';
|
|
|
|
pwg_query('
|
|
CREATE TABLE `'.PREFIX_TABLE.'lounge` (
|
|
`image_id` mediumint(8) unsigned NOT NULL,
|
|
`category_id` smallint(5) unsigned NOT NULL,
|
|
PRIMARY KEY (`image_id`,`category_id`)
|
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8
|
|
;');
|
|
|
|
echo "\n".$upgrade_description."\n";
|
|
|
|
?>
|