Skip to content

Commit e59382d

Browse files
committed
Update personal_access_tokens migration to match the Laravel 10 spec
1 parent 5075ae1 commit e59382d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ class CreatePersonalAccessTokensTable extends Migration
1414
public function up()
1515
{
1616
Schema::create('personal_access_tokens', function (Blueprint $table) {
17-
$table->bigIncrements('id');
17+
$table->id();
1818
$table->morphs('tokenable');
1919
$table->string('name');
2020
$table->string('token', 64)->unique();
2121
$table->text('abilities')->nullable();
2222
$table->timestamp('last_used_at')->nullable();
23+
$table->timestamp('expires_at')->nullable();
2324
$table->timestamps();
2425
});
2526
}

0 commit comments

Comments
 (0)