From a90c0b7b0f10d3d349a4f60caa73098eba85e8d2 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Mon, 7 Nov 2022 00:10:51 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E6=96=B0=E5=88=9B=E5=BB=BA=20Token=20?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ..._recreate_personal_access_tokens_table.php | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 database/migrations/2022_11_07_001025_recreate_personal_access_tokens_table.php diff --git a/database/migrations/2022_11_07_001025_recreate_personal_access_tokens_table.php b/database/migrations/2022_11_07_001025_recreate_personal_access_tokens_table.php new file mode 100644 index 0000000..74e9e96 --- /dev/null +++ b/database/migrations/2022_11_07_001025_recreate_personal_access_tokens_table.php @@ -0,0 +1,39 @@ +id(); + $table->morphs('tokenable'); + $table->string('name'); + $table->string('token', 64)->unique(); + $table->text('abilities')->nullable(); + $table->timestamp('last_used_at')->nullable(); + $table->timestamp('expires_at')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // Schema::dropIfExists('personal_access_tokens'); + } +};