1
0
Fork 0
mirror of synced 2024-09-20 03:17:30 +12:00

Make scopes optional on functions

This commit is contained in:
Bradley Schofield 2024-07-17 17:58:25 +09:00
parent 7dec5f68be
commit 83c4350395
2 changed files with 2 additions and 10 deletions

View file

@ -4751,8 +4751,8 @@ $consoleCollections = array_merge([
'format' => '',
'size' => Database::LENGTH_KEY,
'signed' => true,
'required' => true,
'default' => null,
'required' => false,
'default' => [],
'array' => true,
'filters' => [],
],

View file

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