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

PostgreSQL: Show structure of inherited tables

This commit is contained in:
Jakub Vrana
2025-06-03 14:33:30 +02:00
parent acfebf1788
commit e589c80f42
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
## Adminer dev
- Allow specifying operator in search anywhere
- MySQL 5.0-: Do not load partitioning info in alter table (bug #1099)
- PostgreSQL: Show structure of inherited tables
- PostgreSQL 11-: Avoid duplicate oid in table status (bug #1089)
- Plugins: Methods processList() and killProcess()

View File

@@ -22,6 +22,10 @@ if ($comment != "") {
echo "<p class='nowrap'>" . lang('Comment') . ": " . h($comment) . "\n";
}
if ($fields) {
adminer()->tableStructurePrint($fields, $table_status);
}
function tables_links($tables) {
echo "<ul>\n";
foreach ($tables as $table) {
@@ -34,8 +38,6 @@ $inherits = driver()->inheritsFrom($TABLE);
if ($inherits) {
echo "<h3>" . lang('Inherits from') . "</h3>\n";
tables_links($inherits);
} elseif ($fields) {
adminer()->tableStructurePrint($fields, $table_status);
}
if (support("indexes") && driver()->supportsIndex($table_status)) {