| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function up() |
||
| 17 | { |
||
| 18 | Schema::create(config('rinvex.forms.tables.forms'), function (Blueprint $table) { |
||
| 19 | // Columns |
||
| 20 | $table->increments('id'); |
||
| 21 | $table->nullableMorphs('entity'); |
||
| 22 | $table->string('slug'); |
||
| 23 | $table->{$this->jsonable()}('name'); |
||
| 24 | $table->{$this->jsonable()}('description')->nullable(); |
||
| 25 | $table->{$this->jsonable()}('content'); |
||
| 26 | $table->{$this->jsonable()}('actions')->nullable(); |
||
| 27 | $table->{$this->jsonable()}('submission')->nullable(); |
||
| 28 | $table->boolean('is_active')->default(false); |
||
| 29 | $table->boolean('is_public')->default(false); |
||
| 30 | $table->timestamps(); |
||
| 31 | $table->softDeletes(); |
||
| 32 | |||
| 33 | // Indexes |
||
| 34 | $table->unique('slug'); |
||
| 35 | }); |
||
| 36 | } |
||
| 37 | |||
| 62 |