* @copyright 2019 idnovate.com * @license See above */ function upgrade_module_2_0_5($module) { Db::getInstance()->execute( 'ALTER TABLE `'._DB_PREFIX_.'quantity_discount_rule` ADD `compatible_cart_rules` tinyint(1) NOT NULL AFTER `execute_other_rules`;' ); Db::getInstance()->execute( "ALTER TABLE `'._DB_PREFIX_.'quantity_discount_rule_action` ADD `product_price_operator` tinyint(1) unsigned DEFAULT NULL AFTER `reduction_max_currency`, ADD `product_price_amount` decimal(17,2) NOT NULL DEFAULT '0.00' AFTER `product_price_operator`, ADD `product_price_currency` int(10) unsigned NOT NULL AFTER `product_price_amount`, ADD `product_price_tax` tinyint(1) unsigned NOT NULL AFTER `product_price_currency`;" ); Db::getInstance()->execute( "ALTER TABLE `'._DB_PREFIX_.'quantity_discount_rule_condition` ADD `product_price_operator` tinyint(1) unsigned DEFAULT NULL AFTER `products_nb_each`, ADD `product_price_amount` decimal(17,2) NOT NULL DEFAULT '0.00' AFTER `product_price_operator`, ADD `product_price_currency` int(10) unsigned NOT NULL AFTER `product_price_amount`, ADD `product_price_tax` tinyint(1) unsigned NOT NULL AFTER `product_price_currency`;" ); return $module; }