summaryrefslogtreecommitdiff
path: root/database/migrations/2020_06_18_155337_create_match_team_table.php
diff options
context:
space:
mode:
authorFbenas <philbeansburton@gmail.com>2020-06-19 02:16:51 +0100
committerFbenas <philbeansburton@gmail.com>2020-06-19 02:16:51 +0100
commitd1fe4536cc039450b540104e382db0d01d5cf886 (patch)
treefd40ab48f79370541f377b59bb381811126485ad /database/migrations/2020_06_18_155337_create_match_team_table.php
parentc83e876693bdb71c66418c13f5e09dfdaef24478 (diff)
Initial commit
Diffstat (limited to 'database/migrations/2020_06_18_155337_create_match_team_table.php')
-rw-r--r--database/migrations/2020_06_18_155337_create_match_team_table.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/database/migrations/2020_06_18_155337_create_match_team_table.php b/database/migrations/2020_06_18_155337_create_match_team_table.php
new file mode 100644
index 0000000..a1e7d0e
--- /dev/null
+++ b/database/migrations/2020_06_18_155337_create_match_team_table.php
@@ -0,0 +1,36 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class CreateMatchTeamTable extends Migration
+{
+ /**
+ * Run the migrations.
+ *
+ * @return void
+ */
+ public function up()
+ {
+ Schema::create(
+ 'match_team', function (Blueprint $table) {
+ $table->id();
+ $table->unsignedInteger('match_id');
+ $table->unsignedInteger('team_id');
+ $table->boolean('is_home');
+ $table->timestamps();
+ }
+ );
+ }
+
+ /**
+ * Reverse the migrations.
+ *
+ * @return void
+ */
+ public function down()
+ {
+ Schema::dropIfExists('match_team');
+ }
+}