]> git.joonet.de Git - adminer.git/commitdiff
Add section links in database overview
authorJakub Vrana <jakub@vrana.cz>
Wed, 11 Jun 2025 17:33:07 +0000 (19:33 +0200)
committerJakub Vrana <jakub@vrana.cz>
Wed, 11 Jun 2025 17:33:07 +0000 (19:33 +0200)
CHANGELOG.md
adminer/include/adminer.inc.php

index 02f2838015208ff5c114a794f38a2fb9b5752613..22b67e9016d3684a91bff7833ff571297a66c963 100644 (file)
@@ -1,6 +1,7 @@
 ## Adminer dev
 - Allow specifying operator in search anywhere
 - Do not order descending in GROUP BY select
+- Add section links in database overview
 - Warn about exceeded max_file_uploads in import
 - MySQL 5.0-: Do not load partitioning info in alter table (bug #1099)
 - PostgreSQL: Show structure of inherited tables
index 52115ebda4bad636730ec7c68354d4f9b4968e10..90adda8a9aa52e822596ae20c3e57ad500c612f2 100644 (file)
@@ -962,6 +962,12 @@ class Adminer {
                echo (support("scheme") ? "<a href='" . h(ME) . "scheme='>" . ($_GET["ns"] != "" ? lang('Alter schema') : lang('Create schema')) . "</a>\n" : "");
                echo ($_GET["ns"] !== "" ? '<a href="' . h(ME) . 'schema=">' . lang('Database schema') . "</a>\n" : "");
                echo (support("privileges") ? "<a href='" . h(ME) . "privileges='>" . lang('Privileges') . "</a>\n" : "");
+               if ($_GET["ns"] !== "") {
+                       echo (support("routine") ? "<a href='#routines'>" . lang('Routines') . "</a>\n" : "");
+                       echo (support("sequence") ? "<a href='#sequences'>" . lang('Sequences') . "</a>\n" : "");
+                       echo (support("type") ? "<a href='#user-types'>" . lang('User types') . "</a>\n" : "");
+                       echo (support("event") ? "<a href='#events'>" . lang('Events') . "</a>\n" : "");
+               }
                return true;
        }