1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-10 08:34:20 +02:00

Display collation at table structure if different from table

This commit is contained in:
Jakub Vrana
2025-03-19 22:42:02 +01:00
parent 889ffe28c7
commit f2a5d5127a
6 changed files with 13 additions and 8 deletions

View File

@@ -6,7 +6,7 @@ $fields = fields($TABLE);
if (!$fields) {
$error = error();
}
$table_status = table_status1($TABLE, true);
$table_status = table_status1($TABLE);
$name = $adminer->tableName($table_status);
page_header(($fields && is_view($table_status) ? $table_status['Engine'] == 'materialized view' ? lang('Materialized view') : lang('View') : lang('Table')) . ": " . ($name != "" ? $name : h($TABLE)), $error);
@@ -23,7 +23,7 @@ if ($comment != "") {
}
if ($fields) {
$adminer->tableStructurePrint($fields);
$adminer->tableStructurePrint($fields, $table_status);
}
if (support("indexes") && $driver->supportsIndex($table_status)) {