mirror of
https://github.com/vrana/adminer.git
synced 2026-01-07 16:13:01 +01:00
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:
@@ -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;">
|
||||
|
||||
Reference in New Issue
Block a user