1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-13 18:14:07 +02:00

AdminerDumpAlter: Rename colliding method (fix #943)

This commit is contained in:
Jakub Vrana
2025-03-23 13:56:40 +01:00
parent e975e546e1
commit 9142e7e8a5

View File

@@ -14,7 +14,7 @@ class AdminerDumpAlter {
} }
} }
private function database() { private function dumpAlter() {
// drop old tables // drop old tables
$query = "SELECT TABLE_NAME, ENGINE, TABLE_COLLATION, TABLE_COMMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE()"; $query = "SELECT TABLE_NAME, ENGINE, TABLE_COLLATION, TABLE_COMMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE()";
echo "DELIMITER ;; echo "DELIMITER ;;
@@ -60,7 +60,7 @@ SELECT @adminer_alter;
$first = false; $first = false;
echo "SET @adminer_alter = '';\n\n"; echo "SET @adminer_alter = '';\n\n";
} else { } else {
$this->database(); $this->dumpAlter();
} }
return true; return true;
} }
@@ -164,7 +164,7 @@ DROP PROCEDURE adminer_alter;
function dumpFooter() { function dumpFooter() {
if ($_POST["format"] == "sql_alter") { if ($_POST["format"] == "sql_alter") {
$this->database(); $this->dumpAlter();
} }
} }
} }