Skip to content
Permalink
Browse files

fix update sql

  • Loading branch information
matthieu-rolland committed Aug 21, 2019
1 parent 559811f commit 38b9a1b5ec6d5f38dc47284a72970de78a4de77e
Showing with 5 additions and 0 deletions.
  1. +2 −0 install-dev/upgrade/sql/1.6.0.11.sql
  2. +3 −0 install-dev/upgrade/sql/1.7.7.0.sql
@@ -24,6 +24,8 @@ ALTER TABLE `PREFIX_product_attribute_shop` MODIFY `unit_price_impact` DECIMAL(2

/* PHP:p16011_media_server(); */;

INSERT INTO `PREFIX_configuration` (`name`, `value`, `date_add`, `date_upd`) VALUES ('PS_PRICE_DISPLAY_PRECISION', 2, NOW(), NOW());

/* Precision used to be 2, now it can be set freely, so the DB must be ready to accept more decimals */
ALTER TABLE `PREFIX_orders`
CHANGE COLUMN `total_discounts` `total_discounts` DECIMAL(20,6) NOT NULL DEFAULT '0.00' ,
@@ -12,3 +12,6 @@ ALTER TABLE `PREFIX_supply_order_detail` ADD `mpn` VARCHAR(40) NULL AFTER `upc`;
ALTER TABLE `PREFIX_stock` ADD `mpn` VARCHAR(40) NULL AFTER `upc`;
ALTER TABLE `PREFIX_product_attribute` ADD `mpn` VARCHAR(40) NULL AFTER `upc`;
ALTER TABLE `PREFIX_product` ADD `mpn` VARCHAR(40) NULL AFTER `upc`;

/* Delete price display precision configuration */
DELETE `PREFIX_configuration` WHERE name = 'PS_PRICE_DISPLAY_PRECISION';

This comment has been minimized.

Copy link
@rblaurin

rblaurin Nov 6, 2019

Contributor

Did you miss a "FROM" here?

This comment has been minimized.

Copy link
@matks

matks Nov 7, 2019

Contributor

That is a very nice catch 🎯

This comment has been minimized.

Copy link
@matks

matks Nov 7, 2019

Contributor

Created a fix PR for that: #16305

0 comments on commit 38b9a1b

Please sign in to comment.
You can’t perform that action at this time.