From c8d6ac0267698dd5b54aa9d999fc7de6f1005186 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Thu, 31 Aug 2023 08:40:53 -0700 Subject: [PATCH] Update migration script to not remove schedule from functions --- src/Appwrite/Migration/Version/V19.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/Appwrite/Migration/Version/V19.php b/src/Appwrite/Migration/Version/V19.php index d59aa8302c..ac6eff98e2 100644 --- a/src/Appwrite/Migration/Version/V19.php +++ b/src/Appwrite/Migration/Version/V19.php @@ -10,7 +10,6 @@ use Utopia\Database\Database; use Utopia\Database\DateTime; use Utopia\Database\Document; use Utopia\Database\Exception; -use Utopia\Database\Query; class V19 extends Migration { @@ -343,6 +342,7 @@ class V19 extends Migration 'providerSilentMode', 'logging', 'deploymentInternalId', + 'schedule', 'scheduleInternalId', 'scheduleId', 'version', @@ -662,14 +662,6 @@ class V19 extends Migration $this->projectDB->deleteCachedCollection('projects'); - try { - $this->projectDB->deleteAttribute('functions', 'schedule'); - } catch (\Throwable $th) { - Console::warning("'schedule' from functions: {$th->getMessage()}"); - } - - $this->projectDB->deleteCachedCollection('functions'); - try { $this->projectDB->deleteAttribute('builds', 'stderr'); } catch (\Throwable $th) {