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