UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Tue, 27 Jun 2017 01:58:18 +0000 (09:58 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 27 Jun 2017 01:58:18 +0000 (09:58 +0800)
UpdateDatabase.php

index df67914..d953b7a 100644 (file)
@@ -268,12 +268,12 @@ class Pman_Core_UpdateDatabase extends Pman
             $this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/sql");
             $this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/{$dbtype}");
             
-            if (class_exists('PDO_DataObjects_Introspection')) {
-                PDO_DataObject_Introspection::$cache = array();
-            }
-            
+           
             
             if (!empty($this->opts['init']) && file_exists($this->rootDir. "/Pman/$m/{$dbtype}.initdata")) {
+                if (class_exists('PDO_DataObjects_Introspection')) {
+                    PDO_DataObject_Introspection::$cache = array();
+                }
                 HTML_FlexyFramework::get()->generateDataobjectsCache(true);
                 
                 $this->{$dirmethod}($dburl, $this->rootDir. "/Pman/$m/{$dbtype}.initdata");
@@ -284,6 +284,7 @@ class Pman_Core_UpdateDatabase extends Pman
             
         }
         
+        
     }