mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 07:36:44 +02:00
Ignore auto_increment in SQLite export
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user