Merge pull request #8889 from appwrite/fix-migrations-queries

Fix missing allow attribute
This commit is contained in:
Steven Nguyen 2024-10-28 20:40:40 -07:00 committed by GitHub
commit 894b6f478d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -8,6 +8,7 @@ class Migrations extends Base
'status',
'stage',
'source',
'destination',
'resources',
'statusCounters',
'resourceData',

View file

@ -46,9 +46,15 @@ class Migration extends Model
'default' => '',
'example' => 'Appwrite',
])
->addRule('destination', [
'type' => self::TYPE_STRING,
'description' => 'A string containing the type of destination of the migration.',
'default' => 'Appwrite',
'example' => 'Appwrite',
])
->addRule('resources', [
'type' => self::TYPE_STRING,
'description' => 'Resources to migration.',
'description' => 'Resources to migrate.',
'default' => [],
'example' => ['user'],
'array' => true