diff --git a/CHANGELOG for v1.x.x.md b/CHANGELOG for v1.x.x.md index eed7a7f61..c285bd804 100644 --- a/CHANGELOG for v1.x.x.md +++ b/CHANGELOG for v1.x.x.md @@ -56,6 +56,8 @@ * #2459 [fixed] - shipping address field warning for guest customer not translated. +* #2463 [fixed] - Tax rate is not update on same product. + * #2469 [fixed] - Displaying wrong amount for bundle product in cart. * #2479 [fixed] - showing total review in recent view product list. diff --git a/packages/Webkul/CartRule/src/Database/Migrations/2019_05_13_024321_create_cart_rules_table.php b/packages/Webkul/CartRule/src/Database/Migrations/2019_05_13_024321_create_cart_rules_table.php index 6912df3c1..bb0a4658d 100644 --- a/packages/Webkul/CartRule/src/Database/Migrations/2019_05_13_024321_create_cart_rules_table.php +++ b/packages/Webkul/CartRule/src/Database/Migrations/2019_05_13_024321_create_cart_rules_table.php @@ -47,6 +47,16 @@ class CreateCartRulesTable extends Migration */ public function down() { + Schema::table('cart_rule_customers', function (Blueprint $table) { + $table->dropForeign('cart_rule_customers_cart_rule_id_foreign'); + }); + + Schema::table('cart_rule_coupons', function (Blueprint $table) { + $table->dropForeign('cart_rule_coupons_cart_rule_id_foreign'); + }); + + // Schema::dropIfExists('cart_rule_coupons'); + Schema::dropIfExists('cart_rules'); } } diff --git a/packages/Webkul/Customer/src/Database/Migrations/2018_07_24_082930_create_customers_table.php b/packages/Webkul/Customer/src/Database/Migrations/2018_07_24_082930_create_customers_table.php index 92fd6f824..1d0c43d57 100755 --- a/packages/Webkul/Customer/src/Database/Migrations/2018_07_24_082930_create_customers_table.php +++ b/packages/Webkul/Customer/src/Database/Migrations/2018_07_24_082930_create_customers_table.php @@ -39,6 +39,12 @@ class CreateCustomersTable extends Migration */ public function down() { + Schema::table('cart_rule_customers', function (Blueprint $table) { + $table->dropForeign('cart_rule_customers_customer_id_foreign'); + }); + + // Schema::dropIfExists('cart_rule_customers'); + Schema::dropIfExists('customers'); } }