feat: add info columns for clients & scopes
This commit is contained in:
parent
6e6055c44a
commit
b6abfe9e3b
2 changed files with 37 additions and 0 deletions
19
migrations/2023_09_29_add_columns_to_oauth_clients_table.php
Normal file
19
migrations/2023_09_29_add_columns_to_oauth_clients_table.php
Normal 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],
|
||||
]);
|
18
migrations/2023_09_29_add_columns_to_oauth_scopes_table.php
Normal file
18
migrations/2023_09_29_add_columns_to_oauth_scopes_table.php
Normal 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],
|
||||
]);
|
Loading…
Reference in a new issue