From c117e4923c034ae53c7a7351dc254ec6c93672dc Mon Sep 17 00:00:00 2001 From: jasonzli-DEV Date: Sun, 14 Jun 2026 17:28:14 -0400 Subject: [PATCH] fix social login --- ...1_26_123932_create_social_logins_table.php | 4 ++-- ...000_expand_social_logins_token_columns.php | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 database/migrations/2026_06_14_000000_expand_social_logins_token_columns.php diff --git a/database/migrations/2026_01_26_123932_create_social_logins_table.php b/database/migrations/2026_01_26_123932_create_social_logins_table.php index dc29a4399..ac706d3e7 100644 --- a/database/migrations/2026_01_26_123932_create_social_logins_table.php +++ b/database/migrations/2026_01_26_123932_create_social_logins_table.php @@ -17,8 +17,8 @@ public function up(): void $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade'); $table->string('provider'); $table->string('provider_user_id'); - $table->string('provider_token')->nullable(); - $table->string('provider_refresh_token')->nullable(); + $table->text('provider_token')->nullable(); + $table->text('provider_refresh_token')->nullable(); $table->timestamps(); $table->unique(['provider', 'provider_user_id']); diff --git a/database/migrations/2026_06_14_000000_expand_social_logins_token_columns.php b/database/migrations/2026_06_14_000000_expand_social_logins_token_columns.php new file mode 100644 index 000000000..e72a02f97 --- /dev/null +++ b/database/migrations/2026_06_14_000000_expand_social_logins_token_columns.php @@ -0,0 +1,24 @@ +text('provider_token')->nullable()->change(); + $table->text('provider_refresh_token')->nullable()->change(); + }); + } + + public function down(): void + { + Schema::table('social_logins', function (Blueprint $table) { + $table->string('provider_token')->nullable()->change(); + $table->string('provider_refresh_token')->nullable()->change(); + }); + } +};