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:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user