summaryrefslogtreecommitdiff
path: root/database/migrations
diff options
context:
space:
mode:
authorFbenas <philbeansburton@gmail.com>2020-06-20 21:07:45 +0100
committerFbenas <philbeansburton@gmail.com>2020-06-20 21:07:45 +0100
commit8d6e8b306d7836e4075a13ad98617bfe5afaa1a0 (patch)
tree99c44e28da231cac0d9e513aabc1ee0768972426 /database/migrations
parent897b68ac107f2fb0d4dc1d31ce96ce24c862eb27 (diff)
Add new scripts for youtube downloading and syncing with existing matches
Diffstat (limited to 'database/migrations')
-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');
+ }
+}