fix: multiple migrations

This commit is contained in:
Torsten Dittmann 2022-02-17 20:22:51 +01:00
parent 9aa7085ae9
commit 8271f87e44

View file

@ -53,7 +53,7 @@ class V12 extends Migration
/**
* Remove empty generated Console Project.
*/
if ($this->projectDB->getNamespace() === '_project_console') {
if ($this->consoleDB->getNamespace() === '_project_console' && $projectId === 'console') {
$all = [];
foreach ($this->collections as $collection) {
$all[] = "_{$projectId}_{$collection['$id']}";