1
0
Fork 0
mirror of synced 2024-10-02 18:26:49 +13: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) { 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']);

View file

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