From 8271f87e44c5fedb949015cf1a87a5250e19c884 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Thu, 17 Feb 2022 20:22:51 +0100 Subject: [PATCH] fix: multiple migrations --- src/Appwrite/Migration/Version/V12.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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']}";