| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('posts', function (Blueprint $table) { |
||
| 17 | $table->id(); |
||
| 18 | $table->string('slug')->unique(); |
||
| 19 | $table->string('code')->unique(); |
||
| 20 | $table->unsignedBigInteger('author_id'); |
||
| 21 | $table->unsignedBigInteger('category_id'); |
||
| 22 | $table->string('name'); |
||
| 23 | $table->text('excerpt'); |
||
| 24 | $table->text('body')->nullable(); |
||
| 25 | $table->string('image')->nullable(); |
||
| 26 | $table->integer('status')->default(1); |
||
| 27 | $table->boolean('featured')->default(0); |
||
| 28 | $table->bigInteger('priority')->default(1); |
||
| 29 | $table->integer('type')->default(1); |
||
| 30 | $table->string('video')->nullable(); |
||
| 31 | $table->string('audio')->nullable(); |
||
| 32 | $table->boolean('breaking_news')->default(0); |
||
| 33 | $table->boolean('hot_news')->default(0); |
||
| 34 | $table->string('seo_name')->nullable(); |
||
| 35 | $table->text('meta_description')->nullable(); |
||
| 36 | $table->json('meta_keywords')->nullable(); |
||
| 37 | $table->timestamps(); |
||
| 38 | }); |
||
| 51 |