| Conditions | 2 |
| Paths | 2 |
| Total Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function up() |
||
| 22 | { |
||
| 23 | if (!Schema::hasTable('shopping_cart')) { |
||
| 24 | |||
| 25 | Schema::create('shopping_cart', function (Blueprint $table) { |
||
| 26 | $table->string('key'); |
||
| 27 | $table->string('__raw_id'); |
||
| 28 | $table->string('guard')->nullable(); |
||
| 29 | $table->integer('user_id')->nullable(); |
||
| 30 | $table->integer('id'); |
||
| 31 | $table->string('name'); |
||
| 32 | $table->integer('qty'); |
||
| 33 | $table->decimal('price'); |
||
| 34 | $table->decimal('total'); |
||
| 35 | $table->string('__model')->nullable(); |
||
| 36 | $table->string('type')->nullable(); |
||
| 37 | $table->string('status')->nullable(); |
||
| 38 | $table->text('attributes')->nullable(); |
||
| 39 | $table->primary(['key', '__raw_id']); |
||
| 40 | $table->nullableTimestamps(); |
||
| 41 | }); |
||
| 42 | } |
||
| 43 | } |
||
| 44 | |||
| 53 |