diff --git a/src/Appwrite/Migration/Version/V23.php b/src/Appwrite/Migration/Version/V23.php index 39d8e1ff3f..0a2c632b3f 100644 --- a/src/Appwrite/Migration/Version/V23.php +++ b/src/Appwrite/Migration/Version/V23.php @@ -447,8 +447,9 @@ class V23 extends Migration private function cleanCollections(): void { - $internalProjectId = $this->project->getInternalId(); - $collectionType = match ($internalProjectId) { + $projectInternalId = $this->project->getInternalId(); + + $collectionType = match ($projectInternalId) { 'console' => 'console', default => 'projects', }; @@ -459,8 +460,6 @@ class V23 extends Migration Console::log("Migrating Collection \"{$id}\""); - $this->projectDB->setNamespace("_$internalProjectId"); - switch ($id) { case '_metadata': if ($this->projectDB->exists('builds')) {