1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 03:53:59 +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
$query = "SELECT TABLE_NAME, ENGINE, TABLE_COLLATION, TABLE_COMMENT FROM information_schema.TABLES WHERE TABLE_SCHEMA = DATABASE()";
echo "DELIMITER ;;
@@ -60,7 +60,7 @@ SELECT @adminer_alter;
$first = false;
echo "SET @adminer_alter = '';\n\n";
} else {
$this->database();
$this->dumpAlter();
}
return true;
}
@@ -164,7 +164,7 @@ DROP PROCEDURE adminer_alter;
function dumpFooter() {
if ($_POST["format"] == "sql_alter") {
$this->database();
$this->dumpAlter();
}
}
}