r1269 + preparing to delete from IPAddress again with 0.14.7 in mind
authorDenis Ovsienko <infrastation@yandex.ru>
Wed, 14 Nov 2007 10:29:38 +0000 (10:29 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Wed, 14 Nov 2007 10:29:38 +0000 (10:29 +0000)
upgrade.php

index ade73e75bc96e805f2fba5486fef5e1933adb756..886516360823553d04bbb2e839dc7385dc1dd5db 100644 (file)
@@ -129,6 +129,9 @@ CREATE TABLE `Config` (
                        $query[] = "INSERT INTO `Config` VALUES ('PORTS_PER_ROW','12','uint','no','yes','Max switch port per one row on the switchvlans dynamic tab.')";
                        $query[] = "INSERT INTO `Config` VALUES ('DB_VERSION','0.14.6','string','no','yes','Database version.')";
                        break; // --------------------------------------------
+               case '0.14.7':
+                       $query[] = "delete from IPAddress where name = '' and reserved != 'yes'";
+                       break; // --------------------------------------------
                default:
                        showError ("executeUpgradeBatch () failed, because batch '${batchid}' isn't defined");
                        die;