From d1a1ebdf6ce127a327417a48ca89d2d64599445d Mon Sep 17 00:00:00 2001 From: FoskyM Date: Fri, 29 Sep 2023 14:51:47 +0800 Subject: [PATCH] fix: migrations --- .../2023_09_29_add_columns_to_oauth_clients_table.php | 8 ++++---- .../2023_09_29_add_columns_to_oauth_scopes_table.php | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) 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], ]);