]> git.localhorst.tv Git - alttp.git/blobdiff - database/migrations/2023_10_04_145919_add_join_field_to_channels_table.php
basic twitch join/part commands
[alttp.git] / database / migrations / 2023_10_04_145919_add_join_field_to_channels_table.php
diff --git a/database/migrations/2023_10_04_145919_add_join_field_to_channels_table.php b/database/migrations/2023_10_04_145919_add_join_field_to_channels_table.php
new file mode 100644 (file)
index 0000000..d9d5651
--- /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->boolean('join')->default(false);
+               });
+       }
+
+       /**
+        * Reverse the migrations.
+        *
+        * @return void
+        */
+       public function down()
+       {
+               Schema::table('channels', function (Blueprint $table) {
+                       $table->dropColumn('join');
+               });
+       }
+};