From 9c59deca1dcaec27df6ce272f9d6745fb36572b6 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 14 Sep 2022 10:21:32 +0200 Subject: [PATCH] fix: create scheduleUpdatedAt attribute on migration --- src/Appwrite/Migration/Version/V15.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Appwrite/Migration/Version/V15.php b/src/Appwrite/Migration/Version/V15.php index 70daa7a656..27cd32bcf0 100644 --- a/src/Appwrite/Migration/Version/V15.php +++ b/src/Appwrite/Migration/Version/V15.php @@ -761,6 +761,14 @@ class V15 extends Migration $this->projectDB->deleteAttribute('functions', 'vars'); $this->createAttributeFromCollection($this->projectDB, 'functions', 'vars'); } + try { + /** + * Create 'scheduleUpdatedAt' attribute + */ + $this->createAttributeFromCollection($this->projectDB, $id, 'scheduleUpdatedAt'); + } catch (\Throwable $th) { + Console::warning("'scheduleUpdatedAt' from {$id}: {$th->getMessage()}"); + } try { /** * Create 'enabled' attribute