]> BookStack Code Mirror - bookstack/blob - database/migrations/2015_07_12_190027_create_pages_table.php
Initial commit
[bookstack] / database / migrations / 2015_07_12_190027_create_pages_table.php
1 <?php
2
3 use Illuminate\Database\Schema\Blueprint;
4 use Illuminate\Database\Migrations\Migration;
5
6 class CreatePagesTable extends Migration
7 {
8     /**
9      * Run the migrations.
10      *
11      * @return void
12      */
13     public function up()
14     {
15         Schema::create('pages', function (Blueprint $table) {
16             $table->increments('id');
17             $table->timestamps();
18         });
19     }
20
21     /**
22      * Reverse the migrations.
23      *
24      * @return void
25      */
26     public function down()
27     {
28         Schema::drop('pages');
29     }
30 }