diff options
Diffstat (limited to 'database/migrations/2020_06_20_214459_add_url_to_videos.php')
| -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) { +                // +            } +        ); +    } +} | 
