mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
fix: migrate variables
This commit is contained in:
parent
a7ef1367b8
commit
e0267da7ac
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue