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 dc29a439..ac706d3e 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 00000000..e72a02f9 --- /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(); + }); + } +};