mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
fixes #658, upgrade script to 2.9
This commit is contained in:
+6
-2
@@ -346,6 +346,10 @@ else if (!in_array('activation_key_expire', $columns_of[PREFIX_TABLE.'user_infos
|
||||
{
|
||||
$current_release = '2.6.0';
|
||||
}
|
||||
else if (!in_array('auth_key_id', $columns_of[PREFIX_TABLE.'history']))
|
||||
{
|
||||
$current_release = '2.7.0';
|
||||
}
|
||||
else
|
||||
{
|
||||
// retrieve already applied upgrades
|
||||
@@ -355,9 +359,9 @@ SELECT id
|
||||
;';
|
||||
$applied_upgrades = array_from_query($query, 'id');
|
||||
|
||||
if (!in_array(148, $applied_upgrades))
|
||||
if (!in_array(152, $applied_upgrades))
|
||||
{
|
||||
$current_release = '2.7.0';
|
||||
$current_release = '2.8.0';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user