2021_12_30_084831_create_video_show_table.php 927 Bytes
<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateVideoShowTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('video_show', function (Blueprint $table) {
            $table->increments('id');
            $table->string('video_url')->default('')->comment('视频地址');
            $table->string('video_size')->default('')->comment('视频大小');
            $table->string('video_time')->default('')->comment('视频时长');
            $table->unsignedTinyInteger('is_horizontal')->comment('1=横版,2=竖版');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('video_show');
    }
}