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