summaryrefslogtreecommitdiff
path: root/database/migrations/2020_06_18_155337_create_match_tournament_table.php
diff options
context:
space:
mode:
Diffstat (limited to 'database/migrations/2020_06_18_155337_create_match_tournament_table.php')
-rw-r--r--database/migrations/2020_06_18_155337_create_match_tournament_table.php35
1 files changed, 35 insertions, 0 deletions
diff --git a/database/migrations/2020_06_18_155337_create_match_tournament_table.php b/database/migrations/2020_06_18_155337_create_match_tournament_table.php
new file mode 100644
index 0000000..02f0e91
--- /dev/null
+++ b/database/migrations/2020_06_18_155337_create_match_tournament_table.php
@@ -0,0 +1,35 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateMatchTournamentTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create(
+ 'match_tournament', function (Blueprint $table) {
+ $table->id();
+ $table->unsignedInteger('match_id');
+ $table->unsignedInteger('tournament_id');
+ $table->timestamps();
+ }
+ );
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::dropIfExists('match_tournament');
+ }
+}