diff --git a/migrations/2023_09_29_add_columns_to_oauth_clients_table.php b/migrations/2023_09_29_add_columns_to_oauth_clients_table.php index acb44b0..7faf001 100644 --- a/migrations/2023_09_29_add_columns_to_oauth_clients_table.php +++ b/migrations/2023_09_29_add_columns_to_oauth_clients_table.php @@ -12,8 +12,8 @@ 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], + 'client_name' => ['string', 'length' => 500, 'default' => null, 'nullable' => true], + 'client_icon' => ['string', 'length' => 500, 'default' => null, 'nullable' => true], + 'client_desc' => ['string', 'length' => 1000, 'default' => null, 'nullable' => true], + 'client_home' => ['string', 'length' => 200, 'default' => null, 'nullable' => true], ]); diff --git a/migrations/2023_09_29_add_columns_to_oauth_scopes_table.php b/migrations/2023_09_29_add_columns_to_oauth_scopes_table.php index e12c30e..e8eb891 100644 --- a/migrations/2023_09_29_add_columns_to_oauth_scopes_table.php +++ b/migrations/2023_09_29_add_columns_to_oauth_scopes_table.php @@ -12,7 +12,7 @@ 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], + 'scope_name' => ['string', 'length' => 500, 'default' => null, 'nullable' => true], + 'scope_icon' => ['string', 'length' => 500, 'default' => null, 'nullable' => true], + 'scope_desc' => ['string', 'length' => 1000, 'default' => null, 'nullable' => true], ]);