fix: migrate variables

This commit is contained in:
Torsten Dittmann 2022-09-12 16:06:05 +02:00
parent a7ef1367b8
commit e0267da7ac

View file

@ -735,6 +735,7 @@ class V15 extends Migration
if ($value instanceof Document) {
continue;
}
$variableId = ID::unique();
$variable = new Document([
'$id' => $variableId,
@ -745,8 +746,8 @@ class V15 extends Migration
],
'functionId' => $function->getId(),
'functionInternalId' => $function->getInternalId(),
'key' => $key,
'value' => $value,
'key' => (string) $key,
'value' => (string) $value,
'search' => implode(' ', [$variableId, $key, $function->getId()])
]);
$this->projectDB->createDocument('variables', $variable);