]> git.localhorst.tv Git - alttp.git/blobdiff - database/migrations/2022_03_23_175706_participant_placement.php
server calculated scoring
[alttp.git] / database / migrations / 2022_03_23_175706_participant_placement.php
diff --git a/database/migrations/2022_03_23_175706_participant_placement.php b/database/migrations/2022_03_23_175706_participant_placement.php
new file mode 100644 (file)
index 0000000..ef8aad0
--- /dev/null
@@ -0,0 +1,34 @@
+<?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('participants', function(Blueprint $table) {
+                       $table->integer('placement')->nullable()->default(null);
+                       $table->integer('score')->nullable()->default(null);
+               });
+       }
+
+       /**
+        * Reverse the migrations.
+        *
+        * @return void
+        */
+       public function down()
+       {
+               Schema::table('participants', function(Blueprint $table) {
+                       $table->dropColumn('placement');
+                       $table->dropColumn('score');
+               });
+       }
+};