feat: add info columns for clients & scopes

This commit is contained in:
FoskyM 2023-09-29 14:47:59 +08:00
parent 6e6055c44a
commit b6abfe9e3b
No known key found for this signature in database
GPG key ID: 42C0ED6994AD7E9C
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,19 @@
<?php
/*
* This file is part of foskym/flarum-oauth-center.
*
* Copyright (c) 2023 FoskyM.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
use Flarum\Database\Migration;
return Migration::addColumns('oauth_clients', [
'client_name' => ['string', 'default' => null, 'nullable' => true],
'client_icon' => ['string', 'default' => null, 'nullable' => true],
'client_desc' => ['string', 'default' => null, 'nullable' => true],
'client_home' => ['string', 'default' => null, 'nullable' => true],
]);

View file

@ -0,0 +1,18 @@
<?php
/*
* This file is part of foskym/flarum-oauth-center.
*
* Copyright (c) 2023 FoskyM.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
use Flarum\Database\Migration;
return Migration::addColumns('oauth_scopes', [
'scope_name' => ['string', 'default' => null, 'nullable' => true],
'scope_icon' => ['string', 'default' => null, 'nullable' => true],
'scope_desc' => ['string', 'default' => null, 'nullable' => true],
]);