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