fix: migrations

This commit is contained in:
FoskyM 2023-09-29 14:51:47 +08:00
parent f67f167af7
commit d1a1ebdf6c
No known key found for this signature in database
GPG key ID: 42C0ED6994AD7E9C
2 changed files with 7 additions and 7 deletions

View file

@ -12,8 +12,8 @@
use Flarum\Database\Migration; use Flarum\Database\Migration;
return Migration::addColumns('oauth_clients', [ return Migration::addColumns('oauth_clients', [
'client_name' => ['string', 'default' => null, 'nullable' => true], 'client_name' => ['string', 'length' => 500, 'default' => null, 'nullable' => true],
'client_icon' => ['string', 'default' => null, 'nullable' => true], 'client_icon' => ['string', 'length' => 500, 'default' => null, 'nullable' => true],
'client_desc' => ['string', 'default' => null, 'nullable' => true], 'client_desc' => ['string', 'length' => 1000, 'default' => null, 'nullable' => true],
'client_home' => ['string', 'default' => null, 'nullable' => true], 'client_home' => ['string', 'length' => 200, 'default' => null, 'nullable' => true],
]); ]);

View file

@ -12,7 +12,7 @@
use Flarum\Database\Migration; use Flarum\Database\Migration;
return Migration::addColumns('oauth_scopes', [ return Migration::addColumns('oauth_scopes', [
'scope_name' => ['string', 'default' => null, 'nullable' => true], 'scope_name' => ['string', 'length' => 500, 'default' => null, 'nullable' => true],
'scope_icon' => ['string', 'default' => null, 'nullable' => true], 'scope_icon' => ['string', 'length' => 500, 'default' => null, 'nullable' => true],
'scope_desc' => ['string', 'default' => null, 'nullable' => true], 'scope_desc' => ['string', 'length' => 1000, 'default' => null, 'nullable' => true],
]); ]);