Fix truncateTable() method for SQLite

This commit is contained in:
Visman 2023-03-31 09:43:16 +07:00
parent db2d89168d
commit c2b5758465

View file

@ -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,
];