Skip to content

Commit

Permalink
Merge pull request #646 from ShaiMagal/minimal-quantity-should-be-1-a…
Browse files Browse the repository at this point in the history
…t-least

Minimal_quantity should be 1 at least, not 0!
  • Loading branch information
Hlavtox committed Nov 15, 2023
2 parents 083cb5d + e67975b commit d8b26e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions upgrade/sql/8.1.3.sql
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ ALTER TABLE `PREFIX_product_group_reduction_cache` CHANGE `reduction` `reduction
ALTER TABLE `PREFIX_stock_mvt` CHANGE `physical_quantity` `physical_quantity` INT(10) UNSIGNED NOT NULL;
ALTER TABLE `PREFIX_group_reduction` CHANGE `reduction` `reduction` DECIMAL(5, 4) NOT NULL;
ALTER TABLE `PREFIX_order_payment` CHANGE `amount` `amount` DECIMAL(20, 6) NOT NULL;

/* Minimal_quantity should be 1 at least, not 0 */
UPDATE `PREFIX_product` SET `minimal_quantity` = 1 WHERE `minimal_quantity` = 0;
UPDATE `PREFIX_product_shop` SET `minimal_quantity` = 1 WHERE `minimal_quantity` = 0;
UPDATE `PREFIX_product_attribute` SET `minimal_quantity` = 1 WHERE `minimal_quantity` = 0;
UPDATE `PREFIX_product_attribute_shop` SET `minimal_quantity` = 1 WHERE `minimal_quantity` = 0;

0 comments on commit d8b26e8

Please sign in to comment.