aboutsummaryrefslogtreecommitdiffstats
path: root/upgrade.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2014-01-02 15:04:16 +0000
committerplegall <plg@piwigo.org>2014-01-02 15:04:16 +0000
commit104b93e80d5785fffd655171f06f23f54d68ab04 (patch)
treeba42bc19dbcbf49a85697e0051869249658bbd8e /upgrade.php
parent5fb0ce9063564955bd7e46033528ad678cc30321 (diff)
feature 3016: upgrade script to Piwigo 2.6
git-svn-id: http://piwigo.org/svn/trunk@26401 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'upgrade.php')
-rw-r--r--upgrade.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/upgrade.php b/upgrade.php
index 06014b3fc..36fbd7fbc 100644
--- a/upgrade.php
+++ b/upgrade.php
@@ -335,6 +335,10 @@ else if (!in_array('rotation', $columns_of[PREFIX_TABLE.'images']))
{
$current_release = '2.3.0';
}
+else if (!in_array('website_url', $columns_of[PREFIX_TABLE.'comments']))
+{
+ $current_release = '2.4.0';
+}
else
{
// retrieve already applied upgrades
@@ -344,15 +348,16 @@ SELECT id
;';
$applied_upgrades = array_from_query($query, 'id');
- if (!in_array(134, $applied_upgrades))
+ if (!in_array(139, $applied_upgrades))
{
- $current_release = '2.4.0';
+ $current_release = '2.5.0';
}
else
{
// confirm that the database is in the same version as source code files
conf_update_param('piwigo_db_version', get_branch_from_version(PHPWG_VERSION));
-
+
+ header('Content-Type: text/html; charset='.get_pwg_charset());
echo 'No upgrade required, the database structure is up to date';
echo '<br><a href="index.php">← back to gallery</a>';
exit();