Created
December 8, 2017 14:29
-
-
Save hanspagel/546cbbd1c33e924f5ecf6a5382048423 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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