UpdateDatabase.php
authorAlan Knowles <alan@akbkhome.com>
Wed, 9 May 2012 08:58:55 +0000 (16:58 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 9 May 2012 08:58:55 +0000 (16:58 +0800)
UpdateDatabase.php

index d9d8e97..0c5b843 100644 (file)
@@ -120,16 +120,16 @@ class Pman_Core_UpdateDatabase extends Pman
             $fd = $this->rootDir. "/Pman/$m/sql";
             
             foreach(glob($fd.'/*.sql') as $fn) {
-                
-                
-                
                 $cmd = "$mysql_cmd -f < " . escapeshellarg($fn) ;
-                
                 echo $cmd. ($this->cli ? "\n" : "<BR>\n");
-                
                 passthru($cmd);
+            }
+            $fd = $this->rootDir. "/Pman/$m/mysql";
             
-                
+            foreach(glob($fd.'/*.sql') as $fn) {
+                $cmd = "$mysql_cmd -f < " . escapeshellarg($fn) ;
+                echo $cmd. ($this->cli ? "\n" : "<BR>\n");
+                passthru($cmd);
             }