Viewing: 2023_09_05_061941_create_interviews_table.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('interviews', function (Blueprint $table) { $table->id(); $table->string('title'); $table->text('headline')->nullable(); $table->text('description')->nullable(); $table->text('image_url')->nullable(); $table->string('slug')->nullable(); $table->string('old_slug')->nullable(); $table->tinyInteger('status')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('interviews'); } };
Return