$this->{'import' . $url['scheme']}($url);
}
+
+ /**
+ * mysql - does not support conversions.
+ *
+ *
+ */
+
function importmysql($url)
{
echo $mysql_cmd . "\n" ;
-
+ // old -- DAtaObjects/*.sql
foreach($ar as $m) {
}
+ // new -- sql directory..
+ // new style will not support migrate ... they have to go into mysql-migrate.... directories..
+ // new style will not support pg.sql etc.. naming - that's what the direcotries are for..
+ $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);
+
+
+ }
+
+
+
+
+
+
}
+
+
+ foreach($ar as $m) {
+
+
+ }
}