1
0
Fork 0
mirror of synced 2024-07-02 21:20:58 +12:00

fix: case for console projects

This commit is contained in:
Torsten Dittmann 2022-06-27 16:58:57 +02:00
parent 30557bbe4e
commit c3c6d00a9c
2 changed files with 8 additions and 2 deletions

View file

@ -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']);

View file

@ -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;
}