| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class CreatePagesTable extends Migration |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Run the migrations. |
||
| 11 | * |
||
| 12 | * @return void |
||
| 13 | */ |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('pages', function(Blueprint $table) { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->integer('template_id'); |
||
| 19 | $table->tinyInteger('isHp')->default(0); |
||
| 20 | $table->string('title'); |
||
| 21 | $table->string('slug'); |
||
| 22 | $table->integer('active'); |
||
| 23 | $table->longText('meta'); |
||
| 24 | $table->timestamps(); |
||
| 25 | }); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Reverse the migrations. |
||
| 30 | * |
||
| 31 | * @return void |
||
| 32 | */ |
||
| 33 | public function down() |
||
| 36 | } |
||
| 37 | } |
||
| 38 |