mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +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();
|
$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']`.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue