Refactor : Coupon effect inputs are now more customisable
Adding effect to be stored as serialised in JSON
This commit is contained in:
@@ -1084,7 +1084,7 @@ CREATE TABLE `coupon`
|
||||
`id` INTEGER NOT NULL AUTO_INCREMENT,
|
||||
`code` VARCHAR(45) NOT NULL,
|
||||
`type` VARCHAR(255) NOT NULL,
|
||||
`amount` FLOAT NOT NULL,
|
||||
`serialized_effects` TEXT NOT NULL,
|
||||
`is_enabled` TINYINT(1) NOT NULL,
|
||||
`expiration_date` DATETIME NOT NULL,
|
||||
`max_usage` INTEGER NOT NULL,
|
||||
@@ -1101,7 +1101,6 @@ CREATE TABLE `coupon`
|
||||
INDEX `idx_is_enabled` (`is_enabled`),
|
||||
INDEX `idx_is_used` (`is_used`),
|
||||
INDEX `idx_type` (`type`),
|
||||
INDEX `idx_amount` (`amount`),
|
||||
INDEX `idx_expiration_date` (`expiration_date`),
|
||||
INDEX `idx_is_cumulative` (`is_cumulative`),
|
||||
INDEX `idx_is_removing_postage` (`is_removing_postage`),
|
||||
@@ -2385,7 +2384,7 @@ CREATE TABLE `coupon_version`
|
||||
`id` INTEGER NOT NULL,
|
||||
`code` VARCHAR(45) NOT NULL,
|
||||
`type` VARCHAR(255) NOT NULL,
|
||||
`amount` FLOAT NOT NULL,
|
||||
`serialized_effects` TEXT NOT NULL,
|
||||
`is_enabled` TINYINT(1) NOT NULL,
|
||||
`expiration_date` DATETIME NOT NULL,
|
||||
`max_usage` INTEGER NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user