| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Bedard\Shop\Updates; |
||
| 9 | public function up() |
||
| 10 | { |
||
| 11 | Schema::create('bedard_shop_category_product', function (Blueprint $table) { |
||
| 12 | $table->engine = 'InnoDB'; |
||
| 13 | $table->integer('category_id')->unsigned()->nullable(); |
||
| 14 | $table->integer('product_id')->unsigned()->nullable(); |
||
| 15 | $table->boolean('is_inherited')->index()->default(false); |
||
| 16 | $table->primary(['category_id', 'product_id'], 'category_product'); |
||
| 17 | }); |
||
| 18 | } |
||
| 19 | |||
| 25 |