]> git.localhorst.tv Git - alttp.git/blobdiff - database/migrations/2023_03_01_143514_channel_twitch_chat.php
fix some twitch bot stuff
[alttp.git] / database / migrations / 2023_03_01_143514_channel_twitch_chat.php
diff --git a/database/migrations/2023_03_01_143514_channel_twitch_chat.php b/database/migrations/2023_03_01_143514_channel_twitch_chat.php
new file mode 100644 (file)
index 0000000..b9d3901
--- /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('channels', function(Blueprint $table) {
+                       $table->string('twitch_chat')->default('');
+               });
+       }
+
+       /**
+        * Reverse the migrations.
+        *
+        * @return void
+        */
+       public function down()
+       {
+               Schema::table('events', function(Blueprint $table) {
+                       $table->dropColumn('twitch_chat');
+               });
+       }
+};