| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 11 |
| Lines | 14 |
| Ratio | 100 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace Bedard\Shop\Updates; |
||
| 9 | View Code Duplication | public function up() |
|
| 10 | { |
||
| 11 | Schema::create('bedard_shop_cart_items', function (Blueprint $table) { |
||
| 12 | $table->engine = 'InnoDB'; |
||
| 13 | $table->increments('id'); |
||
| 14 | $table->integer('cart_id')->unsigned()->index(); |
||
| 15 | $table->integer('inventory_id')->unsigned()->index(); |
||
| 16 | $table->integer('product_id')->unsigned()->index(); |
||
| 17 | $table->integer('quantity')->unsigned()->default(0); |
||
| 18 | $table->boolean('is_reduced')->default(false); |
||
| 19 | $table->timestamps(); |
||
| 20 | $table->softDeletes(); |
||
| 21 | }); |
||
| 22 | } |
||
| 23 | |||
| 29 |