Skip to content

Commit

Permalink
Fix tokens columns type for OAuth
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurpar06 committed Jul 2, 2024
1 parent 7e037ec commit a74eaa0
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
public function up(): void
{
Schema::table('user_oauth_tokens', function (Blueprint $table) {
$table->text('token')->change();
$table->text('refresh_token')->change();
});
}

public function down(): void
{
Schema::table('user_oauth_tokens', function (Blueprint $table) {
$table->string('token')->change();
$table->string('refresh_token')->change();
});
}
};

0 comments on commit a74eaa0

Please sign in to comment.