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