sqlite: use delete for truncate
parent
58aa071e9e
commit
91c6086896
|
@ -141,7 +141,8 @@ class TimelineWrite {
|
|||
* @param File $file
|
||||
*/
|
||||
public function clear() {
|
||||
$sql = 'TRUNCATE TABLE *PREFIX*memories';
|
||||
$this->connection->executeStatement($sql);
|
||||
$query = $this->connection->getQueryBuilder();
|
||||
$query->delete('memories');
|
||||
$query->executeStatement();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue