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'); + } +};