}
}
- 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 ;;
$first = false;
echo "SET @adminer_alter = '';\n\n";
} else {
- $this->database();
+ $this->dumpAlter();
}
return true;
}
function dumpFooter() {
if ($_POST["format"] == "sql_alter") {
- $this->database();
+ $this->dumpAlter();
}
}
}