Skip migrating domains without project because it would throw an error
This commit is contained in:
parent
03c2a16306
commit
f317d33fc7
|
@ -56,6 +56,14 @@ class V19 extends Migration
|
|||
$status = 'verified';
|
||||
}
|
||||
|
||||
$projectId = $domain->getAttribute('projectId');
|
||||
$projectInternalId = $domain->getAttribute('projectInternalId');
|
||||
|
||||
if (empty($projectId) || empty($projectInternalId)) {
|
||||
Console::warning("Error migrating domain {$domain->getAttribute('domain')}: Missing projectId or projectInternalId");
|
||||
continue;
|
||||
}
|
||||
|
||||
$ruleDocument = new Document([
|
||||
'projectId' => $domain->getAttribute('projectId'),
|
||||
'projectInternalId' => $domain->getAttribute('projectInternalId'),
|
||||
|
|
Loading…
Reference in a new issue