<?php
 use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class ModifyQuestion20210112 extends Migration { public function up() { Schema::table('question', function (Blueprint $table) { $table->index('parentId'); }); } public function down() { } } 