@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('tax_rules', function (Blueprint $table) { |
|
| 15 | + Schema::create('tax_rules', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('tax_enable'); |
| 18 | 18 | $table->integer('inclusive'); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::table('promo_product_relations', function (Blueprint $table) { |
|
| 15 | + Schema::table('promo_product_relations', function(Blueprint $table) { |
|
| 16 | 16 | $table->foreign('product_id')->references('id')->on('products')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 17 | 17 | $table->foreign('promotion_id')->references('id')->on('promotions')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 18 | 18 | }); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | { |
| 28 | - Schema::table('promo_product_relations', function (Blueprint $table) { |
|
| 28 | + Schema::table('promo_product_relations', function(Blueprint $table) { |
|
| 29 | 29 | $table->dropForeign('promo_product_relations_product_id_foreign'); |
| 30 | 30 | $table->dropForeign('promo_product_relations_promotion_id_foreign'); |
| 31 | 31 | }); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('users', function (Blueprint $table) { |
|
| 15 | + Schema::create('users', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('user_name', 225); |
| 18 | 18 | $table->string('first_name'); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::table('promotions', function (Blueprint $table) { |
|
| 15 | + Schema::table('promotions', function(Blueprint $table) { |
|
| 16 | 16 | $table->foreign('type')->references('id')->on('promotion_types')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 17 | 17 | }); |
| 18 | 18 | } |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | */ |
| 25 | 25 | public function down() |
| 26 | 26 | { |
| 27 | - Schema::table('promotions', function (Blueprint $table) { |
|
| 27 | + Schema::table('promotions', function(Blueprint $table) { |
|
| 28 | 28 | $table->dropForeign('promotions_type_foreign'); |
| 29 | 29 | }); |
| 30 | 30 | } |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('payments', function (Blueprint $table) { |
|
| 15 | + Schema::create('payments', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->integer('parent_id'); |
| 18 | 18 | $table->integer('invoice_id'); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('jobs', function (Blueprint $table) { |
|
| 15 | + Schema::create('jobs', function(Blueprint $table) { |
|
| 16 | 16 | $table->bigInteger('id', true)->unsigned(); |
| 17 | 17 | $table->string('queue'); |
| 18 | 18 | $table->text('payload'); |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::table('tax_product_relations', function (Blueprint $table) { |
|
| 15 | + Schema::table('tax_product_relations', function(Blueprint $table) { |
|
| 16 | 16 | $table->foreign('product_id')->references('id')->on('products')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 17 | 17 | $table->foreign('tax_class_id', 'tax_product_relations_tax_id_foreign')->references('id')->on('tax_classes')->onUpdate('RESTRICT')->onDelete('RESTRICT'); |
| 18 | 18 | }); |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | public function down() |
| 27 | 27 | { |
| 28 | - Schema::table('tax_product_relations', function (Blueprint $table) { |
|
| 28 | + Schema::table('tax_product_relations', function(Blueprint $table) { |
|
| 29 | 29 | $table->dropForeign('tax_product_relations_product_id_foreign'); |
| 30 | 30 | $table->dropForeign('tax_product_relations_tax_id_foreign'); |
| 31 | 31 | }); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('product_bundles', function (Blueprint $table) { |
|
| 15 | + Schema::create('product_bundles', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->timestamp('valid_from')->default(DB::raw('CURRENT_TIMESTAMP')); |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | */ |
| 13 | 13 | public function up() |
| 14 | 14 | { |
| 15 | - Schema::create('plans', function (Blueprint $table) { |
|
| 15 | + Schema::create('plans', function(Blueprint $table) { |
|
| 16 | 16 | $table->increments('id'); |
| 17 | 17 | $table->string('name'); |
| 18 | 18 | $table->integer('product'); |