ALTER TABLE `#__djc2_price_rules` CHANGE `calc_type` `calc_type` ENUM('grand_total','total_items','each_item','delivery','payment','min_price','buy_x_discount') CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'grand_total';

ALTER TABLE `#__djc2_price_rules`  ADD `min_price` DECIMAL(10,4) NOT NULL DEFAULT '0.0000'  AFTER `max_orders`,  ADD `buy_x_count` INT NOT NULL DEFAULT '0'  AFTER `min_price`;