diff --git a/src/Appwrite/Migration/Version/V12.php b/src/Appwrite/Migration/Version/V12.php index 5835f66dac..73177b61fb 100644 --- a/src/Appwrite/Migration/Version/V12.php +++ b/src/Appwrite/Migration/Version/V12.php @@ -53,7 +53,7 @@ class V12 extends Migration /** * Remove empty generated Console Project. */ - if ($this->projectDB->getNamespace() === '_project_console') { + if ($this->consoleDB->getNamespace() === '_project_console' && $projectId === 'console') { $all = []; foreach ($this->collections as $collection) { $all[] = "_{$projectId}_{$collection['$id']}";