fix: case for console projects
This commit is contained in:
parent
30557bbe4e
commit
c3c6d00a9c
|
@ -106,6 +106,9 @@ abstract class Migration
|
|||
if ($collection['$collection'] !== Database::METADATA) {
|
||||
continue;
|
||||
}
|
||||
if ($collection['$id'] === 'databases') {
|
||||
continue;
|
||||
}
|
||||
$sum = 0;
|
||||
$nextDocument = null;
|
||||
$collectionCount = $this->projectDB->count($collection['$id']);
|
||||
|
|
|
@ -20,6 +20,10 @@ class V14 extends Migration
|
|||
global $register;
|
||||
$this->pdo = $register->get('db');
|
||||
|
||||
if ($this->project->getId() === 'console' && $this->project->getInternalId() !== 'console') {
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable SubQueries for Speed.
|
||||
*/
|
||||
|
@ -56,8 +60,7 @@ class V14 extends Migration
|
|||
Console::warning($th->getMessage());
|
||||
}
|
||||
|
||||
|
||||
if ($this->project->getId() === 'console') {
|
||||
if ($this->project->getInternalId() === 'console') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue