From: Jakub Vrana Date: Fri, 7 Mar 2025 07:02:06 +0000 (+0100) Subject: PostgreSQL: Fix exporting foreign keys X-Git-Tag: v5.0.0~1 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=47700f2763eb396f84ae8c7a0b8c0721b3e67f17;p=adminer.git PostgreSQL: Fix exporting foreign keys --- 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)) {