From c84a1e4fd8d49ee7df39c04a250cc822b668a29e Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 2 Mar 2022 12:37:54 +0100 Subject: [PATCH] fix: migration custom collection --- src/Appwrite/Migration/Version/V12.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Appwrite/Migration/Version/V12.php b/src/Appwrite/Migration/Version/V12.php index 6bba8b11f5..054ef4f08c 100644 --- a/src/Appwrite/Migration/Version/V12.php +++ b/src/Appwrite/Migration/Version/V12.php @@ -379,6 +379,10 @@ class V12 extends Migration $id = $collection->getId(); $projectId = $this->project->getId(); $internalId = $collection->getInternalId(); + + if ($this->projectDB->exists(App::getEnv('_APP_DB_SCHEMA', 'appwrite'), "collection_{$internalId}")) { + return; + } Console::log("- {$id} ({$collection->getAttribute('name')})"); /**