mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-07-13 00:12:43 -04:00
Amend database upgrade script (#2061)
This commit is contained in:
@@ -3,8 +3,7 @@
|
||||
--
|
||||
|
||||
INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
|
||||
('multi_pack_enabled', '0'),
|
||||
('default_sales_discount_type', '0');
|
||||
('multi_pack_enabled', '0');
|
||||
|
||||
ALTER TABLE `ospos_items`
|
||||
ADD COLUMN `qty_per_pack` decimal(15,3) NOT NULL DEFAULT 1,
|
||||
@@ -19,6 +18,9 @@ UPDATE `ospos_items`
|
||||
-- Add support for Discount on Sales Fixed
|
||||
--
|
||||
|
||||
INSERT INTO `ospos_app_config` (`key`, `value`) VALUES
|
||||
('default_sales_discount_type', '0');
|
||||
|
||||
ALTER TABLE `ospos_item_kits`
|
||||
CHANGE COLUMN `kit_discount_percent` `kit_discount` DECIMAL(15,2) NOT NULL DEFAULT 0 AFTER `item_id`,
|
||||
ADD COLUMN `kit_discount_type` TINYINT(2) NOT NULL DEFAULT '0' AFTER `kit_discount`;
|
||||
|
||||
Reference in New Issue
Block a user