File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,19 @@ public function up(): void
22
22
$ table ->timestamps ();
23
23
});
24
24
25
+ if (!Schema::hasTable ('personal_access_tokens ' )) {
26
+ Schema::create ('personal_access_tokens ' , function (Blueprint $ table ) {
27
+ $ table ->id ();
28
+ $ table ->morphs ('tokenable ' );
29
+ $ table ->string ('name ' );
30
+ $ table ->string ('token ' , 64 )->unique ();
31
+ $ table ->text ('abilities ' )->nullable ();
32
+ $ table ->timestamp ('last_used_at ' )->nullable ();
33
+ $ table ->timestamp ('expires_at ' )->nullable ();
34
+ $ table ->timestamps ();
35
+ });
36
+ }
37
+
25
38
if (!Schema::hasTable ('password_reset_tokens ' )) {
26
39
Schema::create ('password_reset_tokens ' , function (Blueprint $ table ) {
27
40
$ table ->string ('email ' )->primary ();
@@ -48,6 +61,7 @@ public function up(): void
48
61
public function down (): void
49
62
{
50
63
Schema::dropIfExists ('users ' );
64
+ Schema::dropIfExists ('personal_access_tokens ' );
51
65
Schema::dropIfExists ('password_reset_tokens ' );
52
66
Schema::dropIfExists ('sessions ' );
53
67
}
You can’t perform that action at this time.
0 commit comments