mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
33 lines
1.1 KiB
PHP
33 lines
1.1 KiB
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 = 'Update default template';
|
|
|
|
// +-----------------------------------------------------------------------+
|
|
// | Upgrade content |
|
|
// +-----------------------------------------------------------------------+
|
|
|
|
// set yoga/Sylvia as default value for user_infos.template column
|
|
$query = '
|
|
ALTER TABLE '.PREFIX_TABLE.'user_infos
|
|
CHANGE COLUMN template template varchar(255) NOT NULL default \'yoga/Sylvia\'
|
|
;';
|
|
pwg_query($query);
|
|
|
|
echo
|
|
"\n"
|
|
.'Default template modified to yoga/Sylvia'
|
|
."\n"
|
|
;
|
|
?>
|