aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2011-10-01 22:56:33 +0000
committerplegall <plg@piwigo.org>2011-10-01 22:56:33 +0000
commit70cf50766e62aa3a06f058d8ea062dc36935013f (patch)
tree2afdaeca100aabdcf4715cccb221abf802f1b4cf /upgrade.php
parent33c38abc00c24051f22f4ba79063b2446e52c4a5 (diff)
feature 2452 added: upgrade script from 2.2 to 2.3
git-svn-id: http://piwigo.org/svn/trunk@12296 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--upgrade.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/upgrade.php b/upgrade.php
index 8257ba3fb..43cf70b7a 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -288,6 +288,10 @@ else if (!in_array('added_by', $columns_of[PREFIX_TABLE.'images']))
{
$current_release = '2.1.0';
}
+else if (!in_array('rating_score', $columns_of[PREFIX_TABLE.'images']))
+{
+ $current_release = '2.2.0';
+}
else
{
die('No upgrade required, the database structure is up to date');