r4185 Fixed upgrade from 0.18.5 -> 0.19.0
authorJonathan Thurman <jthurman42@gmail.com>
Wed, 2 Feb 2011 05:36:04 +0000 (05:36 +0000)
committerJonathan Thurman <jthurman42@gmail.com>
Wed, 2 Feb 2011 05:36:04 +0000 (05:36 +0000)
inc/config.php
upgrade.php

index 06f48a8..55574c7 100644 (file)
@@ -22,6 +22,7 @@ $max_dict_key = array
        '0.18.3' => 1356,
        '0.18.4' => 1364,
        '0.18.5' => 1370,
+       '0.18.6' => 1370,
        '0.19.0' => 1559,
 );
 
index 9acafb6..3f337fa 100644 (file)
@@ -756,6 +756,10 @@ CREATE TABLE `VLANValidID` (
                        $query[] = "INSERT INTO `Config` (varname, varvalue, vartype, emptyok, is_hidden, is_userdefined, description) VALUES ('MAX_UNFILTERED_ENTITIES','0','uint','no','no','yes','Max item count to display on unfiltered result page')";
                        $query[] = "UPDATE Config SET varvalue = '0.18.5' WHERE varname = 'DB_VERSION'";
                        break;
+               case '0.18.6':
+                       $query = array_merge ($query, reloadDictionary ($batchid));
+                       $query[] = "UPDATE Config SET varvalue = '0.18.6' WHERE varname = 'DB_VERSION'";
+                       break;
                case '0.19.0':
                        $query = array_merge ($query, reloadDictionary ($batchid));
                        $query[] = 'ALTER TABLE `File` ADD `thumbnail` LONGBLOB NULL AFTER `atime`';