Use standard view detection in schema

This commit is contained in:
Jakub Vrana 2013-04-26 19:11:42 -07:00
parent 8ae8507972
commit fd5e6ef343

View file

@ -17,7 +17,7 @@ $schema = array(); // table => array("fields" => array(name => field), "pos" =>
$referenced = array(); // target_table => array(table => array(left => target_column))
$lefts = array(); // float => bool
foreach (table_status() as $table => $table_status) {
if (!isset($table_status["Engine"])) { // view
if (is_view($table_status)) {
continue;
}
$pos = 0;