1
0
Fork 0
mirror of synced 2024-06-02 10:54:44 +12:00

Drop collection table before deleting metadata

This commit is contained in:
kodumbeats 2021-12-15 15:16:11 -05:00
parent 8083663f99
commit fa69a59e3c

View file

@ -103,6 +103,8 @@ class DeletesV1 extends Worker
$dbForInternal = $this->getInternalDB($projectId);
$dbForExternal = $this->getExternalDB($projectId);
$dbForExternal->deleteCollection($collectionId);
$this->deleteByGroup('attributes', [
new Query('collectionId', Query::TYPE_EQUAL, [$collectionId])
], $dbForInternal);
@ -110,8 +112,6 @@ class DeletesV1 extends Worker
$this->deleteByGroup('indexes', [
new Query('collectionId', Query::TYPE_EQUAL, [$collectionId])
], $dbForInternal);
$dbForExternal->deleteCollection($collectionId);
}
/**