| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('cms_posts', function (Blueprint $table) { |
||
| 17 | $table->bigIncrements('id'); |
||
| 18 | $table->string('featured_image')->nullable(); |
||
| 19 | $table->string('name'); |
||
| 20 | $table->string('type'); |
||
| 21 | $table->string('slug')->unique(); |
||
| 22 | $table->text('body'); |
||
| 23 | $table->unsignedBigInteger('author_id'); |
||
| 24 | $table->dateTime('published_at')->nullable(); |
||
| 25 | $table->timestamps(); |
||
| 26 | |||
| 27 | $table->foreign('author_id') |
||
| 28 | ->references('id') |
||
| 29 | ->on('cms_users'); |
||
| 30 | }); |
||
| 31 | } |
||
| 32 | |||
| 43 |