1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 03:53:59 +02:00

Allow disabling auto_increment value export

This commit is contained in:
Jakub Vrana
2010-06-03 14:15:23 +02:00
parent 38ad832153
commit fe53964c5f
5 changed files with 15 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ function dump_table($table, $style, $is_view = false) {
dump_csv(array_keys(fields($table)));
}
} elseif ($style) {
$create = create_sql($table);
$create = create_sql($table, $_POST["auto_increment"]);
if ($create) {
if ($style == "DROP+CREATE") {
echo "DROP " . ($is_view ? "VIEW" : "TABLE") . " IF EXISTS " . table($table) . ";\n";