diff --git a/docker-compose.yml b/docker-compose.yml index 326bd62e00..d9ea0f5ddf 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 diff --git a/src/Appwrite/Migration/Version/V19.php b/src/Appwrite/Migration/Version/V19.php index 0df5b8a4d3..b9ccf3c302 100644 --- a/src/Appwrite/Migration/Version/V19.php +++ b/src/Appwrite/Migration/Version/V19.php @@ -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',