Merge branch 'fix-migration-issues' of github.com:appwrite/appwrite into fix-migration-issues
This commit is contained in:
commit
d80dc19cd6
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue