DB_DataObject::factory('companies')->initCompanies($this, $opts);
}
+ $this->fixLinks();
+
}
function output() {
echo $psql_cmd . "\n" ;
echo "scan : $dir\n";
+
if (is_file($dir)) {
$files = array($dir);
//usort($files, $lsort);
-
foreach($files as $bfn) {
echo "$bfn: $cmd ". ($ff->cli ? "\n" : "<BR>\n");
-
passthru($cmd);
if ($fn) {
$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...
+
+
}
+ function fixLinks()
+ {
+
+ $ff = HTML_Flexyframework::get();
+
+ $dburl = parse_url($ff->DB_DataObject['database']);
+
+ $dbtype = $dburl['scheme'];
+
+ $scls = ucfirst($dbtype). 'Links';
+ $cls = 'Pman_Core_UpdateDatabase_'. $scls;
+ $fn = implode('/',explode('_', $cls)).'.php';
+ if (!file_exists(__DIR__.'/UpdateDatabase/'. $scls .'.php')) {
+ return;
+ }
+ require_once $fn;
+ $c = new $cls();
+
+
+
+ }
}
\ No newline at end of file