1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-23 14:43:08 +02:00

Display data length and index length for materialized views

This commit is contained in:
Jakub Vrana
2025-06-25 17:26:22 +02:00
parent cfd69dfd8c
commit 5e9c185596
3 changed files with 4 additions and 3 deletions

View File

@@ -96,8 +96,8 @@ if (adminer()->homepage()) {
$id = h("Table-" . $name);
echo '<tr><td>' . checkbox(($view ? "views[]" : "tables[]"), $name, in_array("$name", $tables_views, true), "", "", "", $id); // "$name" to check numeric table names
echo '<th>' . (support("table") || support("indexes") ? "<a href='" . h(ME) . "table=" . urlencode($name) . "' title='" . lang('Show structure') . "' id='$id'>" . h($name) . '</a>' : h($name));
if ($view) {
$title = (preg_match('~materialized~i', $type) ? lang('Materialized view') : lang('View'));
if ($view && !preg_match('~materialized~i', $type)) {
$title = lang('View');
echo '<td colspan="6">' . (support("view") ? "<a href='" . h(ME) . "view=" . urlencode($name) . "' title='" . lang('Alter view') . "'>$title</a>" : $title);
echo '<td align="right"><a href="' . h(ME) . "select=" . urlencode($name) . '" title="' . lang('Select data') . '">?</a>';
} else {