]> git.joonet.de Git - adminer.git/commitdiff
PostgreSQL: Fix exporting foreign keys
authorJakub Vrana <jakub@vrana.cz>
Fri, 7 Mar 2025 07:02:06 +0000 (08:02 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 7 Mar 2025 07:02:06 +0000 (08:02 +0100)
adminer/dump.inc.php

index 8fc961838259cdfca80e3445a4ec8073b5d49f77..032dab2627fc2a6dbf06340a3d75debad8dc86cc 100644 (file)
@@ -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)) {