mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
update: flip check order.
This commit is contained in:
@@ -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']`.
|
||||
|
||||
Reference in New Issue
Block a user