UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Tue, 7 Oct 2014 06:18:52 +0000 (14:18 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 7 Oct 2014 06:18:52 +0000 (14:18 +0800)
UpdateDatabase.php

index 9100997..84bd1e1 100644 (file)
@@ -117,13 +117,16 @@ class Pman_Xtuple_UpdateDatabase extends Pman_Core_UpdateDatabase
         
     }
     
-    function importModuleSQL()
+    function importModuleSQL($dburl)
     {
+         
+            $dbtype = $dburl['scheme'];
+            $dirmethod = 'import' . $dburl['scheme'] . '.dir';
         
-            echo "Importing SQL from module $m\n";
-            
-            $dirmethod = 'importpgsqldir';
             $m = 'Xtuple';
+            echo "Xtyple:Importing SQL from module $m\n";
+        
+            
             // if init has been called
             // look in pgsql.ini
             if (!empty($this->opts['init'])) {