Truncate livephoto on clear

pull/245/head
Varun Patil 2022-11-23 01:49:00 -08:00
parent 92d6d9a5e2
commit 573f5c3fad
1 changed files with 4 additions and 2 deletions

View File

@ -213,7 +213,9 @@ class TimelineWrite
*/ */
public function clear() public function clear()
{ {
$sql = $this->connection->getDatabasePlatform()->getTruncateTableSQL('`*PREFIX*memories`', false); $p = $this->connection->getDatabasePlatform();
$this->connection->executeStatement($sql); $t1 = $p->getTruncateTableSQL('`*PREFIX*memories`', false);
$t2 = $p->getTruncateTableSQL('`*PREFIX*memories_livephoto`', false);
$this->connection->executeStatement("$t1; $t2");
} }
} }