From: Jakub Vrana Date: Fri, 4 Jun 2010 13:50:40 +0000 (+0200) Subject: Ignore auto_increment in SQLite export X-Git-Tag: v3.0.0~75 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=9ef397aee12cf1c6c90975ad736e073ccd2938ba;p=adminer.git Ignore auto_increment in SQLite export --- diff --git a/adminer/drivers/sqlite.inc.php b/adminer/drivers/sqlite.inc.php index 86a6fa1f..170c6f62 100644 --- a/adminer/drivers/sqlite.inc.php +++ b/adminer/drivers/sqlite.inc.php @@ -523,10 +523,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) { function create_sql($table, $auto_increment) { global $connection; - return ($auto_increment || $table != "sqlite_sequence" //! remove also INSERT - ? $connection->result("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = " . $connection->quote($table)) - : "" - ); + return $connection->result("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = " . $connection->quote($table)); } function truncate_sql($table) {