Drop collection table before deleting metadata

This commit is contained in:
kodumbeats committed 2021-12-15 15:16:11 -05:00
1 parent 8083663f99
commit fa69a59e3c
1 file changed
+2 -2
+2 -2
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);
}
/**