mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
31 lines
850 B
PHP
31 lines
850 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 time in images.date_creation column';
|
|
|
|
// Only MySQL is concerned, other DB engines are already "timestamp"
|
|
if ('mysql' == $conf['dblayer'])
|
|
{
|
|
$query = '
|
|
ALTER TABLE '.IMAGES_TABLE.'
|
|
MODIFY date_creation datetime
|
|
;';
|
|
pwg_query($query);
|
|
}
|
|
|
|
echo
|
|
"\n"
|
|
. $upgrade_description
|
|
."\n"
|
|
;
|
|
?>
|