From 47700f2763eb396f84ae8c7a0b8c0721b3e67f17 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Fri, 7 Mar 2025 08:02:06 +0100 Subject: [PATCH] PostgreSQL: Fix exporting foreign keys --- adminer/dump.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/dump.inc.php b/adminer/dump.inc.php index 8fc96183..032dab26 100644 --- a/adminer/dump.inc.php +++ b/adminer/dump.inc.php @@ -120,7 +120,7 @@ SET foreign_key_checks = 0; } // add FKs after creating tables (except in MySQL which uses SET FOREIGN_KEY_CHECKS=0) - if (function_exists('foreign_keys_sql')) { + if (function_exists('Adminer\foreign_keys_sql')) { foreach (table_status('', true) as $name => $table_status) { $table = (DB == "" || in_array($name, (array) $_POST["tables"])); if ($table && !is_view($table_status)) { -- 2.39.5