DataObjects/I18n.php
[Pman.Core] / UpdateDatabase.php
index 7ae266b..a81d927 100644 (file)
@@ -277,6 +277,7 @@ class Pman_Core_UpdateDatabase extends Pman
         
         echo $psql_cmd . "\n" ;
         echo "scan : $dir\n";
+        
         if (is_file($dir)) {
             $files = array($dir);
 
@@ -290,7 +291,6 @@ class Pman_Core_UpdateDatabase extends Pman
         //usort($files, $lsort);
         
         
-        
         foreach($files as $bfn) {
 
 
@@ -317,7 +317,6 @@ class Pman_Core_UpdateDatabase extends Pman
 
             echo "$bfn:   $cmd ". ($ff->cli ? "\n" : "<BR>\n");
 
-
             passthru($cmd);
 
             if ($fn) {
@@ -724,9 +723,14 @@ class Pman_Core_UpdateDatabase extends Pman
         $db->query("show variables like 'innodb_file_per_table'");
         $db->fetch();
         var_dump($db);
+        // Value should == ON
         
         // I think it needs to look in the mysql directory.... to see if the idb exists..
-        SHOW TABLE STATUS;
+        $db = DB_DataObject::factory('core_enum');
+        $db->query("SHOW TABLE STATUS");
+        // Engine should be InnoDB - and file XXX.idb should exist...
+        
+