Drop collection table before deleting metadata
This commit is contained in:
parent
8083663f99
commit
fa69a59e3c
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue