aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2013-03-02 21:02:42 +0000
committerplegall <plg@piwigo.org>2013-03-02 21:02:42 +0000
commit082705b414cfb4d2a85c6ebd5f80d7699c009f64 (patch)
tree26daebda7d854a6229c2d63f2e63346c6a285c11 /upgrade.php
parentdcd518ce6e05afa4763085b22cb73b90a9b84da5 (diff)
feature 2856: upgrade script to version 2.5
git-svn-id: http://piwigo.org/svn/trunk@21103 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--upgrade.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/upgrade.php b/upgrade.php
index 4a40b54f0..ca1ba500d 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -322,6 +322,10 @@ else if (!in_array('rating_score', $columns_of[PREFIX_TABLE.'images']))
{
$current_release = '2.2.0';
}
+else if (!in_array('rotation', $columns_of[PREFIX_TABLE.'images']))
+{
+ $current_release = '2.3.0';
+}
else
{
// retrieve already applied upgrades
@@ -331,9 +335,9 @@ SELECT id
;';
$applied_upgrades = array_from_query($query, 'id');
- if (!in_array(127, $applied_upgrades))
+ if (!in_array(134, $applied_upgrades))
{
- $current_release = '2.3.0';
+ $current_release = '2.4.0';
}
else
{