From 683eecfd2d1f20d2d86d7e8dc628da3d76cc90a0 Mon Sep 17 00:00:00 2001 From: Darshan Date: Sun, 1 Jun 2025 13:03:00 +0530 Subject: [PATCH] update: flip check order. --- src/Appwrite/Migration/Version/V23.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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']`.