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