| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('product_configuration_fields', function (Blueprint $table) { |
||
| 17 | $table->id(); |
||
| 18 | $table->unsignedBigInteger('product_item_id'); |
||
| 19 | $table->unsignedBigInteger('config_field_id'); |
||
| 20 | $table->text('value'); |
||
| 21 | $table->timestamps(); |
||
| 22 | |||
| 23 | //fk |
||
| 24 | $table->foreign('product_item_id')->references('id')->on('product_items'); |
||
| 25 | $table->foreign('config_field_id')->references('id')->on('configuration_fields'); |
||
| 26 | |||
| 40 |