3 use Illuminate\Database\Schema\Blueprint;
4 use Illuminate\Database\Migrations\Migration;
6 class CreateChaptersTable extends Migration
15 Schema::create('chapters', function (Blueprint $table) {
16 $table->engine = 'MyISAM';
17 $table->increments('id');
18 $table->integer('book_id');
19 $table->string('slug')->indexed();
21 $table->text('description');
22 $table->integer('priority');
23 $table->nullableTimestamps();
28 * Reverse the migrations.
32 public function down()
34 Schema::drop('chapters');