mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
New: upgrade script from 1.6.0 (or 1.6.1) to 1.6.2.
#user_infos.auto_login_key is added in upgrade_1.6.0.php instead of upgrade_1.5.0.php. Bug fixed: the database structure dump was starting with a "1", very interesting typo! Bug fixed: the database structure dump was adding #user_infos.auto_login_key nullable while the upgrade file was adding it not nullable. git-svn-id: http://piwigo.org/svn/branches/branch-1_6@1599 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+6
-2
@@ -181,9 +181,13 @@ if (!isset($_GET['version']))
|
||||
{
|
||||
$current_release = '1.5.0';
|
||||
}
|
||||
else if (!in_array('auto_login_key', $columns_of[PREFIX_TABLE.'user_infos']))
|
||||
{
|
||||
$current_release = '1.6.0';
|
||||
}
|
||||
else
|
||||
{
|
||||
die('You are already on branch 1.6, no upgrade required');
|
||||
die('No upgrade required, the database structure is up to date');
|
||||
}
|
||||
|
||||
$template->assign_block_vars(
|
||||
@@ -223,7 +227,7 @@ else
|
||||
array(
|
||||
'id' => $upgrade_id,
|
||||
'applied' => CURRENT_DATE,
|
||||
'description' => 'upgrade included in upgrade',
|
||||
'description' => 'upgrade included in migration',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user