mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update V21.php
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user