upgrade.php: add a section for 0.21.0
[racktables] / wwwroot / inc / upgrade.php
index 1ca45ea479fda5c2ab6476309527f8f7374255cb..bcc19753d9117a98c6db9a7091a1c82e810be76b 100644 (file)
@@ -192,6 +192,7 @@ function getDBUpgradePath ($v1, $v2)
                '0.20.12',
                '0.20.13',
                '0.20.14',
+               '0.21.0',
        );
        if (! in_array ($v1, $versionhistory) || ! in_array ($v2, $versionhistory))
                return NULL;
@@ -1228,6 +1229,9 @@ ENDOFTRIGGER;
                        $query[] = "UPDATE ObjectHistory SET ctime = ctime, has_problems = 'no' WHERE objtype_id = 1561 AND has_problems = ''";
                        $query[] = "UPDATE Config SET varvalue = '0.20.14' WHERE varname = 'DB_VERSION'";
                        break;
+               case '0.21.0':
+                       $query[] = "UPDATE Config SET varvalue = '0.21.0' WHERE varname = 'DB_VERSION'";
+                       break;
                case 'dictionary':
                        $query = reloadDictionary();
                        break;