From 082705b414cfb4d2a85c6ebd5f80d7699c009f64 Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 2 Mar 2013 21:02:42 +0000 Subject: feature 2856: upgrade script to version 2.5 git-svn-id: http://piwigo.org/svn/trunk@21103 68402e56-0260-453c-a942-63ccdbb3a9ee --- upgrade.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'upgrade.php') 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 { -- cgit v1.2.3