Fix truncateTable() method for SQLite
This commit is contained in:
parent
db2d89168d
commit
c2b5758465
1 changed files with 4 additions and 0 deletions
|
@ -705,6 +705,10 @@ class Sqlite
|
|||
$table = $this->tName($table);
|
||||
|
||||
if (false !== $this->db->exec("DELETE FROM \"{$table}\"")) {
|
||||
if (! $this->tableExists('SQLITE_SEQUENCE')) {
|
||||
return true;
|
||||
}
|
||||
|
||||
$vars = [
|
||||
':tname' => $table,
|
||||
];
|
||||
|
|
Loading…
Add table
Reference in a new issue