INSERT INTO systemsettings (type, value, description, active, created, createdById, updated, updatedById)
VALUES ('enable_category_margin', '1','Setting minimum margin by category. 0:close; positive number:open and default value to all categories; other value:open function but no default value', '1', UTC_TIMESTAMP(), '10', UTC_TIMESTAMP(), '10');

ALTER TABLE `productcategory`
ADD COLUMN `minimumMargin` double(10,2) DEFAULT NULL AFTER `forSwap`;
CREATE INDEX `minimumMargin` ON `productcategory`(`minimumMargin`) USING BTREE;
