| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 6 |
| Lines | 9 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php namespace Bedard\Shop\Updates; |
||
| 9 | public function up() |
||
| 10 | { |
||
| 11 | Schema::create('bedard_shop_category_discount', function (Blueprint $table) { |
||
| 12 | $table->engine = 'InnoDB'; |
||
| 13 | $table->integer('category_id')->unsigned()->nullable(); |
||
| 14 | $table->integer('discount_id')->unsigned()->nullable(); |
||
| 15 | $table->primary(['category_id', 'discount_id']); |
||
| 16 | }); |
||
| 17 | } |
||
| 18 | |||
| 24 |