From 17f3353a5fefa3eee22e291f4893b794548eb990 Mon Sep 17 00:00:00 2001 From: Torsten Dittmann Date: Wed, 2 Mar 2022 17:45:22 +0100 Subject: [PATCH] fix: migration for executions --- src/Appwrite/Migration/Version/V12.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Appwrite/Migration/Version/V12.php b/src/Appwrite/Migration/Version/V12.php index 69447166f0..0b8f194d20 100644 --- a/src/Appwrite/Migration/Version/V12.php +++ b/src/Appwrite/Migration/Version/V12.php @@ -270,6 +270,15 @@ class V12 extends Migration Console::warning("'deploymentId' from {$id}: {$th->getMessage()}"); } + try { + /** + * Create statusCode + */ + $this->projectDB->createAttribute(collection: $id, id: 'statusCode', type: Database::VAR_INTEGER, size: 0, required: false); + } catch (\Throwable $th) { + Console::warning("'statusCode' from {$id}: {$th->getMessage()}"); + } + break; case 'teams':