diff options
| author | Fbenas <philbeansburton@gmail.com> | 2020-06-21 17:58:23 +0100 | 
|---|---|---|
| committer | Fbenas <philbeansburton@gmail.com> | 2020-06-21 17:58:23 +0100 | 
| commit | 9cd0234665ea66dff172d94b9c1b4cb61b1d25b1 (patch) | |
| tree | 9cb5d13acbf3c5bb8c842620ceb8a104b41babb7 /database | |
| parent | 8d6e8b306d7836e4075a13ad98617bfe5afaa1a0 (diff) | |
Diffstat (limited to 'database')
| -rw-r--r-- | database/migrations/2020_06_20_214459_add_url_to_videos.php | 36 | 
1 files changed, 36 insertions, 0 deletions
| diff --git a/database/migrations/2020_06_20_214459_add_url_to_videos.php b/database/migrations/2020_06_20_214459_add_url_to_videos.php new file mode 100644 index 0000000..b55fb29 --- /dev/null +++ b/database/migrations/2020_06_20_214459_add_url_to_videos.php @@ -0,0 +1,36 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; + +class AddUrlToVideos extends Migration +{ +    /** +     * Run the migrations. +     * +     * @return void +     */ +    public function up() +    { +        Schema::table( +            'videos', function (Blueprint $table) { +                $table->string('url')->nullable(); +            } +        ); +    } + +    /** +     * Reverse the migrations. +     * +     * @return void +     */ +    public function down() +    { +        Schema::table( +            'videos', function (Blueprint $table) { +                // +            } +        ); +    } +} | 
