]> git.localhorst.tv Git - alttp.git/commitdiff
sanctum upgrade prep
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 6 Apr 2024 13:38:51 +0000 (15:38 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sat, 6 Apr 2024 13:38:51 +0000 (15:38 +0200)
database/migrations/2024_04_06_133645_sanctum_upgrade.php [new file with mode: 0644]

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 (file)
index 0000000..8d0eae9
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+       /**
+        * Run the migrations.
+        *
+        * @return void
+        */
+       public function up()
+       {
+               Schema::table('personal_access_tokens', function (Blueprint $table) {
+                       $table->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');
+               });
+       }
+};