diff --git a/src/Appwrite/Migration/Version/V23.php b/src/Appwrite/Migration/Version/V23.php index 89ce938657..2b07a6584e 100644 --- a/src/Appwrite/Migration/Version/V23.php +++ b/src/Appwrite/Migration/Version/V23.php @@ -48,16 +48,17 @@ class V23 extends Migration { $projectInternalId = $this->project->getSequence(); + if (empty($projectInternalId)) { + throw new Exception('Project ID is null'); + } + + // not needed for `console` project. if ($projectInternalId !== 'projects') { return; } Console::info(" └── Migrating `migrations` collections."); - if (empty($projectInternalId)) { - throw new Exception('Project ID is null'); - } - /** * direct access.\ * same as `$this->collections['projects']['migrations']['$id']`.