From 43fce76c9b78c6ecf74130210fa12d920b86182f Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 16 May 2025 17:35:36 +1200 Subject: [PATCH] Remove redundant namespace set --- src/Appwrite/Migration/Version/V23.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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')) {