Skip to content

Commit

Permalink
Update 2016_06_01_000003_create_oauth_refresh_tokens_table.php
Browse files Browse the repository at this point in the history
  • Loading branch information
KieronWiltshire committed Jan 21, 2020
1 parent 63db1d6 commit 0eabb22
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ public function up()
{
Schema::create('oauth_refresh_tokens', function (Blueprint $table) {
$table->string('id', 100)->primary();
$table->string('access_token_id', 100)->index();
$table->string('access_token_id', 100);
$table->foreign('access_token_id')->references('id')->on('oauth_access_tokens')->onDelete('cascade');
$table->boolean('revoked');
$table->dateTime('expires_at')->nullable();
});
Expand Down

1 comment on commit 0eabb22

@williamqian
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why delete the index of access_token_id?

Please sign in to comment.