]> git.localhorst.tv Git - alttp.git/commitdiff
nullable discord guild icon hash
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 30 Aug 2026 14:10:32 +0000 (16:10 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 30 Aug 2026 14:10:32 +0000 (16:10 +0200)
database/migrations/2026_08_30_140839_nullable_guild_icon_hash.php [new file with mode: 0644]

diff --git a/database/migrations/2026_08_30_140839_nullable_guild_icon_hash.php b/database/migrations/2026_08_30_140839_nullable_guild_icon_hash.php
new file mode 100644 (file)
index 0000000..eeba364
--- /dev/null
@@ -0,0 +1,26 @@
+<?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_guilds', function (Blueprint $table) {
+                       $table->string('icon_hash')->nullable()->default(null)->change();
+               });
+    }
+
+    /**
+     * Reverse the migrations.
+     */
+    public function down(): void
+    {
+        //
+    }
+};