update: flip check order.

This commit is contained in:
Darshan 2025-06-01 13:03:00 +05:30
parent cdd047b459
commit 683eecfd2d

View file

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