]> git.joonet.de Git - adminer.git/commitdiff
PostgreSQL: Show structure of inherited tables
authorJakub Vrana <jakub@vrana.cz>
Tue, 3 Jun 2025 12:33:30 +0000 (14:33 +0200)
committerJakub Vrana <jakub@vrana.cz>
Tue, 3 Jun 2025 12:33:30 +0000 (14:33 +0200)
CHANGELOG.md
adminer/table.inc.php

index 31948b9d09dfa333959006b027bdcdd3ef3517db..1ffdf9c4de49a7b3a2ccf4fcc5b033dc3d028822 100644 (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()
 
index 66f6cfe0066c8258547bc6effd8cd62e73242ccb..56fe7c34cbb4c651f53fb5e0a5ebbadf8a43d810 100644 (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)) {