Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hanspagel/546cbbd1c33e924f5ecf6a5382048423 to your computer and use it in GitHub Desktop.
Save hanspagel/546cbbd1c33e924f5ecf6a5382048423 to your computer and use it in GitHub Desktop.
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateOauthRefreshTokensTable extends Migration
{
public function up()
{
Schema::create('oauth_refresh_tokens', function (Blueprint $table) {
$table->string('id', 100)->primary();
$table->string('access_token_id', 100)->index();
$table->boolean('revoked');
$table->dateTime('expires_at')->nullable();
});
}
public function down()
{
Schema::drop('oauth_refresh_tokens');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment