BranchStore: wipe branched tables, not real ones

This commit is contained in:
Thomas Gelf 2022-09-21 11:51:05 +02:00
parent 0cb6e40681
commit f2eb06ae39

View File

@ -45,7 +45,7 @@ class BranchStore
public function cloneBranchForSync(Branch $branch, $newName, $owner)
{
$this->runTransaction(function ($db) use ($branch, $newName, $owner) {
$tables = BranchSupport::OBJECT_TABLES;
$tables = BranchSupport::BRANCHED_TABLES;
$tables[] = self::TABLE_ACTIVITY;
$newBranch = $this->createBranchByName($newName, $owner);
$oldQuotedUuid = DbUtil::quoteBinaryCompat($branch->getUuid()->getBytes(), $db);
@ -88,7 +88,7 @@ class BranchStore
public function wipeBranch(Branch $branch, $after = null)
{
$this->runTransaction(function ($db) use ($branch, $after) {
$tables = BranchSupport::OBJECT_TABLES;
$tables = BranchSupport::BRANCHED_TABLES;
$tables[] = self::TABLE_ACTIVITY;
$quotedUuid = DbUtil::quoteBinaryCompat($branch->getUuid()->getBytes(), $db);
$where = $db->quoteInto('branch_uuid = ?', $quotedUuid);