database/migrations/2021_04_27_1619520671_create_topic_videos_table.php
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateTopicVideosTable extends Migration
{
public function up()
{
Schema::create('topic_videos', function (Blueprint $table) {
$table->bigIncrements('id');
$table->timestamps();
$table->string('value', 255);
$table->string('poster', 255)->nullable();
$table->unsignedInteger('width')->nullable();
$table->unsignedInteger('height')->nullable();
});
}
public function down()
{
Schema::dropIfExists('topic_videos');
}
}