From: Daniel Karbach Date: Sat, 6 Apr 2024 13:38:51 +0000 (+0200) Subject: sanctum upgrade prep X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=077e8e0e14d82c6fa1f90fe3e5b184c3ddc753a4;p=alttp.git sanctum upgrade prep --- diff --git a/database/migrations/2024_04_06_133645_sanctum_upgrade.php b/database/migrations/2024_04_06_133645_sanctum_upgrade.php new file mode 100644 index 0000000..8d0eae9 --- /dev/null +++ b/database/migrations/2024_04_06_133645_sanctum_upgrade.php @@ -0,0 +1,32 @@ +timestamp('expires_at')->nullable()->after('last_used_at'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('personal_access_tokens', function (Blueprint $table) { + $table->dropColumn('expires_at'); + }); + } +};