1
0
Fork 0
mirror of synced 2024-09-29 17:01:37 +13:00

Merge branch 'fix-migration-issues' of github.com:appwrite/appwrite into fix-migration-issues

This commit is contained in:
Christy Jacob 2023-09-07 00:58:29 -04:00
commit d80dc19cd6
2 changed files with 2 additions and 1 deletions

View file

@ -714,6 +714,7 @@ services:
- OPR_EXECUTOR_ENV=$_APP_ENV
- OPR_EXECUTOR_RUNTIMES=$_APP_FUNCTIONS_RUNTIMES
- OPR_EXECUTOR_SECRET=$_APP_EXECUTOR_SECRET
- OPR_EXECUTOR_RUNTIME_VERSIONS=v2,v3
- OPR_EXECUTOR_LOGGING_PROVIDER=$_APP_LOGGING_PROVIDER
- OPR_EXECUTOR_LOGGING_CONFIG=$_APP_LOGGING_CONFIG
- OPR_EXECUTOR_STORAGE_DEVICE=$_APP_STORAGE_DEVICE

View file

@ -707,7 +707,7 @@ class V19 extends Migration
$commands = $this->getFunctionCommands($document);
$document->setAttribute('commands', $document->getAttribute('commands', $commands));
if ($document->getAttribute('schedule') && !$document->getAttribute('scheduleId', null)) {
if (empty($document->getAttribute('scheduleId', null))) {
$schedule = $this->consoleDB->createDocument('schedules', new Document([
'region' => App::getEnv('_APP_REGION', 'default'), // Todo replace with projects region
'resourceType' => 'function',