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