| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function up(): void |
||
| 17 | { |
||
| 18 | Schema::create(config('rinvex.attributes.tables.attributes'), function (Blueprint $table) { |
||
| 19 | // Columns |
||
| 20 | $table->increments('id'); |
||
| 21 | $table->string('slug'); |
||
| 22 | $table->{$this->jsonable()}('name'); |
||
| 23 | $table->{$this->jsonable()}('description')->nullable(); |
||
| 24 | $table->mediumInteger('sort_order')->unsigned()->default(0); |
||
| 25 | $table->string('group')->nullable(); |
||
| 26 | $table->string('type'); |
||
| 27 | $table->boolean('is_required')->default(false); |
||
| 28 | $table->boolean('is_collection')->default(false); |
||
| 29 | $table->text('default')->nullable(); |
||
| 30 | $table->timestamps(); |
||
| 31 | |||
| 32 | // Indexes |
||
| 33 | $table->unique('slug'); |
||
| 34 | }); |
||
| 35 | } |
||
| 36 | |||
| 61 |