Ignore auto_increment in SQLite export
This commit is contained in:
parent
05aebb6c7d
commit
9ef397aee1
|
@ -523,10 +523,7 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) {
|
||||||
|
|
||||||
function create_sql($table, $auto_increment) {
|
function create_sql($table, $auto_increment) {
|
||||||
global $connection;
|
global $connection;
|
||||||
return ($auto_increment || $table != "sqlite_sequence" //! remove also INSERT
|
return $connection->result("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = " . $connection->quote($table));
|
||||||
? $connection->result("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = " . $connection->quote($table))
|
|
||||||
: ""
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function truncate_sql($table) {
|
function truncate_sql($table) {
|
||||||
|
|
Loading…
Reference in a new issue