Update V21.php

This commit is contained in:
Bradley Schofield 2024-07-17 15:20:34 +09:00
parent 917de006bf
commit d78c880bf0

View file

@ -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;