Skip to content

Commit fd6df4f

Browse files
[Refactor] Add indexes to personal_access_tokens (#571)
* Add Indexing to p_a_t * Update 2019_12_14_000001_create_personal_access_tokens_table.php --------- Co-authored-by: Taylor Otwell <taylor@laravel.com>
1 parent 778520a commit fd6df4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function up(): void
1818
$table->string('token', 64)->unique();
1919
$table->text('abilities')->nullable();
2020
$table->timestamp('last_used_at')->nullable();
21-
$table->timestamp('expires_at')->nullable();
21+
$table->timestamp('expires_at')->nullable()->index();
2222
$table->timestamps();
2323
});
2424
}

0 commit comments

Comments
 (0)