fixup the next release version (0.21.0 -> 0.20.6)
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 18 Nov 2013 12:50:25 +0000 (16:50 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 18 Nov 2013 12:50:25 +0000 (16:50 +0400)
README
wwwroot/inc/upgrade.php

diff --git a/README b/README
index 8dcee661f9abcde4a75de56ebcea137ce53d5236..c9b0228c7f5888f3d450db6153b816b1a21725b4 100644 (file)
--- a/README
+++ b/README
@@ -99,7 +99,7 @@ and initialize the application.
 *                                                     *
 *******************************************************
 
-*** Upgrading to 0.21.0 ***
+*** Upgrading to 0.20.6 ***
 
 New MGMT_PROTOS configuration option replaces the TELNET_OBJS_LISTSRC,
 SSH_OBJS_LISTSRC and RDP_OBJS_LISTSRC options (converting existing settings as
index e392b2b8261bb4bd534557bd748c8d81c30665dd..85b49d364ba10c073c6cd03b543e1d4c48d96a9e 100644 (file)
@@ -233,6 +233,7 @@ function getDBUpgradePath ($v1, $v2)
                '0.20.3',
                '0.20.4',
                '0.20.5',
+               '0.20.6',
        );
        if (!in_array ($v1, $versionhistory) or !in_array ($v2, $versionhistory))
                return NULL;
@@ -1344,7 +1345,7 @@ CREATE TABLE `VSEnabledPorts` (
                        $query[] = "ALTER TABLE `UserConfig` DROP FOREIGN KEY `UserConfig-FK-user`";
                        $query[] = "UPDATE Config SET varvalue = '0.20.5' WHERE varname = 'DB_VERSION'";
                        break;
-               case '0.21.0':
+               case '0.20.6':
                        // one HW type was moved from the 'Network switch' chapter to the 'Network chassis' chapter
                        // change the type of affected objects to 'Network chassis'
                        $query[] = "UPDATE `Object` SET objtype_id = 1503 WHERE id IN (SELECT object_id FROM `AttributeValue` WHERE attr_id = 2 and uint_value = 935)";
@@ -1357,7 +1358,7 @@ CREATE TABLE `VSEnabledPorts` (
 
                        $query[] = "ALTER TABLE `VSEnabledIPs` ADD CONSTRAINT `VSEnabledIPs-FK-object_id` FOREIGN KEY (`object_id`) REFERENCES `Object` (`id`) ON DELETE CASCADE";
 
-                       $query[] = "UPDATE Config SET varvalue = '0.21.0' WHERE varname = 'DB_VERSION'";
+                       $query[] = "UPDATE Config SET varvalue = '0.20.6' WHERE varname = 'DB_VERSION'";
                        break;
                case 'dictionary':
                        $query = reloadDictionary();