query("SHOW FULL COLUMNS FROM " . idf_escape($TABLE)); if (!$result) { $error = h($connection->error); } $table_status = ($result ? table_status($TABLE) : array()); $is_view = !isset($table_status["Rows"]); page_header(($result && $is_view ? lang('View') : lang('Table')) . ": " . h($TABLE), $error); $adminer->selectLinks($table_status, $is_view ? null : ""); if ($result) { echo "
" . lang('Column') . " | " . lang('Type') . " | " . lang('Comment') . " |
---|---|---|
" . h($row["Field"]); echo " | " . h($row["Type"]) . ($row["Null"] == "YES" ? " NULL" : "") . ($row["Extra"] == "auto_increment" ? " " . lang('Auto Increment') . "" : ""); echo " | " . nbsp($row["Comment"]); echo "\n"; } echo " |
$index[type] | " . implode(", ", $print) . "\n"; } echo " |
---|
' . lang('Alter indexes') . "\n"; if ($table_status["Engine"] == "InnoDB") { echo "
" . implode(", ", array_map('h', $foreign_key["source"])) . ""; echo " | $link"; echo "(" . implode(", ", array_map('h', $foreign_key["target"])) . ")"; echo " | " . (!strlen($foreign_key["db"]) ? '' . lang('Alter') . '' : ' '); } echo " |
---|
' . lang('Add foreign key') . "\n"; } if ($connection->server_info >= 5) { echo "
$row[Timing] | $row[Event] | " . h($row["Trigger"]) . " | " . lang('Alter') . "\n"; } echo " |
---|
' . lang('Add trigger') . "\n"; } } }