mirror of
https://github.com/appwrite/appwrite
synced 2026-05-22 08:28:42 +00:00
Update V21.php
This commit is contained in:
parent
917de006bf
commit
d78c880bf0
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue