mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +00:00
update: flip check order.
This commit is contained in:
parent
cdd047b459
commit
683eecfd2d
1 changed files with 5 additions and 4 deletions
|
|
@ -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']`.
|
||||
|
|
|
|||
Loading…
Reference in a new issue