3 use Illuminate\Database\Schema\Blueprint;
4 use Illuminate\Database\Migrations\Migration;
6 class CreatePagesTable extends Migration
17 Schema::create('pages', function (Blueprint $table) {
18 $table->increments('id');
19 $table->integer('book_id');
20 $table->integer('chapter_id');
21 $table->string('name');
22 $table->string('slug')->indexed();
23 $table->longText('html');
24 $table->longText('text');
25 $table->integer('priority');
26 $table->nullableTimestamps();
31 * Reverse the migrations.
35 public function down()
37 Schema::drop('pages');