]> git.localhorst.tv Git - alttp.git/blobdiff - database/migrations/2024_02_28_102210_channel_guessing_game.php
simple guessing game
[alttp.git] / database / migrations / 2024_02_28_102210_channel_guessing_game.php
diff --git a/database/migrations/2024_02_28_102210_channel_guessing_game.php b/database/migrations/2024_02_28_102210_channel_guessing_game.php
new file mode 100644 (file)
index 0000000..28fb7ec
--- /dev/null
@@ -0,0 +1,36 @@
+<?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('guessing_type')->default('');
+                       $table->datetime('guessing_start')->nullable()->default(null);
+                       $table->datetime('guessing_end')->nullable()->default(null);
+               });
+       }
+
+       /**
+        * Reverse the migrations.
+        *
+        * @return void
+        */
+       public function down()
+       {
+               Schema::table('channels', function (Blueprint $table) {
+                       $table->dropColumn('guessing_type');
+                       $table->dropColumn('guessing_start');
+                       $table->dropColumn('guessing_end');
+               });
+       }
+};