| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 35 | public function up() |
||
| 36 | { |
||
| 37 | $this->createSchema(function(Blueprint $table) { |
||
| 38 | $table->increments('id'); |
||
| 39 | |||
| 40 | $table->integer('user_id')->unsigned()->default(0); |
||
| 41 | $table->integer('category_id')->unsigned(); |
||
| 42 | |||
| 43 | $table->string('title'); |
||
| 44 | $table->string('slug'); |
||
| 45 | $table->text('excerpt'); |
||
| 46 | $table->longtext('content'); |
||
| 47 | $table->enum('status', PostStatus::keys()); |
||
| 48 | |||
| 49 | $table->dateTime('publish_date'); |
||
| 50 | $table->timestamps(); |
||
| 51 | $table->softDeletes(); |
||
| 52 | |||
| 53 | $table->unique('slug'); |
||
| 54 | }); |
||
| 55 | } |
||
| 56 | } |
||
| 57 |