| Conditions | 1 |
| Paths | 1 |
| Total Lines | 26 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | public function up(): void |
||
| 16 | { |
||
| 17 | Schema::create(config('rinvex.pages.tables.pages'), function (Blueprint $table) { |
||
| 18 | // Columns |
||
| 19 | $table->increments('id'); |
||
| 20 | $table->string('uri'); |
||
| 21 | $table->string('slug'); |
||
| 22 | $table->string('route'); |
||
| 23 | $table->string('domain')->nullable(); |
||
| 24 | $table->json('middleware')->nullable(); |
||
| 25 | $table->json('title'); |
||
| 26 | $table->json('subtitle')->nullable(); |
||
| 27 | $table->json('excerpt')->nullable(); |
||
| 28 | $table->json('content')->nullable(); |
||
| 29 | $table->string('view'); |
||
| 30 | $table->boolean('is_active')->default(true); |
||
| 31 | $table->mediumInteger('sort_order')->unsigned()->default(0); |
||
| 32 | $table->timestamps(); |
||
| 33 | $table->softDeletes(); |
||
| 34 | |||
| 35 | // Indexes |
||
| 36 | $table->unique(['domain', 'uri']); |
||
| 37 | $table->unique(['domain', 'slug']); |
||
| 38 | $table->unique(['domain', 'route']); |
||
| 39 | }); |
||
| 40 | } |
||
| 41 | |||
| 52 |