]> git.localhorst.tv Git - alttp.git/commitdiff
fix discord token table for fresh installs
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 9 Dec 2025 11:29:45 +0000 (12:29 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 9 Dec 2025 11:29:45 +0000 (12:29 +0100)
database/migrations/2025_12_09_112639_fix_discord_token_table.php [new file with mode: 0644]

diff --git a/database/migrations/2025_12_09_112639_fix_discord_token_table.php b/database/migrations/2025_12_09_112639_fix_discord_token_table.php
new file mode 100644 (file)
index 0000000..319b97e
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class extends Migration
+{
+       /**
+        * Run the migrations.
+        */
+       public function up(): void
+       {
+               Schema::table('discord_access_tokens', function (Blueprint $table) {
+                       $table->text('access_token')->change();
+                       $table->text('refresh_token')->change();
+               });
+       }
+
+       /**
+        * Reverse the migrations.
+        */
+       public function down(): void
+       {
+               Schema::table('discord_access_tokens', function (Blueprint $table) {
+                       $table->string('access_token')->change();
+                       $table->string('refresh_token')->change();
+               });
+       }
+};