sqlite: use delete for truncate

pull/37/head
Varun Patil 2022-09-13 15:05:26 -07:00
parent 58aa071e9e
commit 91c6086896
1 changed files with 3 additions and 2 deletions

View File

@ -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();
}
}