Make scopes optional on functions
This commit is contained in:
parent
7dec5f68be
commit
83c4350395
2 changed files with 2 additions and 10 deletions
|
@ -4751,8 +4751,8 @@ $consoleCollections = array_merge([
|
|||
'format' => '',
|
||||
'size' => Database::LENGTH_KEY,
|
||||
'signed' => true,
|
||||
'required' => true,
|
||||
'default' => null,
|
||||
'required' => false,
|
||||
'default' => [],
|
||||
'array' => true,
|
||||
'filters' => [],
|
||||
],
|
||||
|
|
|
@ -131,14 +131,6 @@ class V21 extends Migration
|
|||
$document->setAttribute('version', '1.6.0');
|
||||
$document->setAttribute('accessedAt', DateTime::now());
|
||||
break;
|
||||
case 'functions':
|
||||
/**
|
||||
* Add scopes attribute.
|
||||
*/
|
||||
if (empty($document->getAttribute('scopes', []))) {
|
||||
$document->setAttribute('scopes', []);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return $document;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue