Separate table_status

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@774 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-07-01 19:58:22 +00:00
parent a02d61c131
commit caeb30f501
6 changed files with 26 additions and 29 deletions

View File

@@ -15,8 +15,7 @@ $base_left = -1;
$schema = array(); // table => array("fields" => array(name => field), "pos" => array(top, left), "references" => array(table => array(left => array(source, target))))
$referenced = array(); // target_table => array(table => array(left => target_column))
$lefts = array(); // float => bool
$result = $dbh->query("SHOW TABLE STATUS");
while ($row = $result->fetch_assoc()) {
foreach (table_status() as $row) {
if (!isset($row["Engine"])) { // view
continue;
}
@@ -49,7 +48,6 @@ while ($row = $result->fetch_assoc()) {
}
$top = max($top, $schema[$row["Name"]]["pos"][0] + 2.5 + $pos);
}
$result->free();
?>
<div id="schema" style="height: <?php echo $top; ?>em;">