diff --git a/src/Appwrite/Migration/Version/V21.php b/src/Appwrite/Migration/Version/V21.php index 10193ec60c..4bd27b71bc 100644 --- a/src/Appwrite/Migration/Version/V21.php +++ b/src/Appwrite/Migration/Version/V21.php @@ -7,6 +7,7 @@ use Exception; use Throwable; use Utopia\CLI\Console; use Utopia\Database\Database; +use Utopia\Database\DateTime; use Utopia\Database\Document; class V21 extends Migration @@ -133,7 +134,7 @@ class V21 extends Migration /** * Add scopes attribute. */ - if (!$document->getAttribute('scopes', false)) { + if (empty($document->getAttribute('scopes', []))) { $document->setAttribute('scopes', []); } break;