mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
fix: migrate variables
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user