diff --git a/database/migrations/2019_01_22_030129_create_pages_table.php b/database/migrations/2019_01_22_030129_create_pages_table.php new file mode 100644 index 000000000..2af388164 --- /dev/null +++ b/database/migrations/2019_01_22_030129_create_pages_table.php @@ -0,0 +1,40 @@ +bigIncrements('id'); + $table->string('root')->nullable()->index(); + $table->string('slug')->nullable()->unique()->index(); + $table->string('title')->nullable(); + $table->unsignedInteger('category_id')->nullable()->index(); + $table->longText('content')->nullable(); + $table->string('template')->default('layouts.app')->index(); + $table->boolean('active')->default(false)->index(); + $table->boolean('cached')->default(true)->index(); + $table->timestamp('active_until')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('pages'); + } +}