<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreateHomeSectionsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('home_sections', function (Blueprint $table) { $table->engine = "InnoDB"; $table->increments('id'); $table->enum('name', \App\Models\HomeSection::$names)->index(); $table->integer('order')->unsigned(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('home_sections'); } }