main
Last change
on this file was c454c0f, checked in by bube-ristovska <ristovska725@…>, 12 months ago |
First commit
|
-
Property mode
set to
100644
|
File size:
856 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | use Illuminate\Database\Migrations\Migration;
|
---|
4 | use Illuminate\Database\Schema\Blueprint;
|
---|
5 | use Illuminate\Support\Facades\Schema;
|
---|
6 |
|
---|
7 | return new class extends Migration
|
---|
8 | {
|
---|
9 | /**
|
---|
10 | * Run the migrations.
|
---|
11 | */
|
---|
12 | public function up(): void
|
---|
13 | {
|
---|
14 | Schema::create('personal_access_tokens', function (Blueprint $table) {
|
---|
15 | $table->id();
|
---|
16 | $table->morphs('tokenable');
|
---|
17 | $table->string('name');
|
---|
18 | $table->string('token', 64)->unique();
|
---|
19 | $table->text('abilities')->nullable();
|
---|
20 | $table->timestamp('last_used_at')->nullable();
|
---|
21 | $table->timestamp('expires_at')->nullable();
|
---|
22 | $table->timestamps();
|
---|
23 | });
|
---|
24 | }
|
---|
25 |
|
---|
26 | /**
|
---|
27 | * Reverse the migrations.
|
---|
28 | */
|
---|
29 | public function down(): void
|
---|
30 | {
|
---|
31 | Schema::dropIfExists('personal_access_tokens');
|
---|
32 | }
|
---|
33 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.