From 20d722b8824bbf063c4cf3a97c055062d243d435 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Sat, 22 Feb 2025 12:36:58 +0100 Subject: [PATCH] PostgreSQL: Link user defined types --- adminer/include/adminer.inc.php | 7 ++++++- changes.txt | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/adminer/include/adminer.inc.php b/adminer/include/adminer.inc.php index 7ead1a69..0297d97e 100644 --- a/adminer/include/adminer.inc.php +++ b/adminer/include/adminer.inc.php @@ -309,12 +309,17 @@ class Adminer { * @return null */ function tableStructurePrint($fields) { + global $structured_types; echo "
\n"; echo "\n"; echo "\n"; foreach ($fields as $field) { echo "
" . lang('Column') . "" . lang('Type') . (support("comment") ? "" . lang('Comment') : "") . "
" . h($field["field"]); - echo "" . h($field["full_type"]) . ""; + $type = h($field["full_type"]); + echo "" + . (in_array($type, (array) $structured_types[lang('User types')]) ? "$type" : $type) + . "" + ; echo ($field["null"] ? " NULL" : ""); echo ($field["auto_increment"] ? " " . lang('Auto Increment') . "" : ""); echo (isset($field["default"]) ? " [" . h($field["default"]) . "]" : ""); diff --git a/changes.txt b/changes.txt index 6f35a106..fefb3373 100644 --- a/changes.txt +++ b/changes.txt @@ -1,5 +1,6 @@ Adminer 4.16.1-dev: Hide index column options by default +PostgreSQL: Link user defined types SQLite: Show all supported pragmas in Variables MS SQL: Allow altering table in non-default schema (bug #405) MS SQL: Fix default values (bug #732, bug #733)