mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Drop collection table before deleting metadata
This commit is contained in:
1 parent
8083663f99
commit
fa69a59e3c
1 file changed
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user