Reapply "feat(loyalty): EnakPoint & EnakCoin" (#32)
This reverts commit 4e24f9bbb0.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
-- Tokens become EnakCoin (docs/prd-point-coin.md §10). Campaigns that handed out
|
||||
-- tokens now hand out coins; the API still accepts TOKENS and stores it as COINS.
|
||||
UPDATE campaigns SET type = 'COINS' WHERE type = 'TOKENS';
|
||||
UPDATE campaign_rules SET reward_type = 'COINS' WHERE reward_type = 'TOKENS';
|
||||
|
||||
COMMENT ON COLUMN campaigns.type IS 'Type of campaign: REWARD, POINTS, COINS, MIXED';
|
||||
COMMENT ON COLUMN campaign_rules.reward_type IS 'Type of reward: POINTS, COINS, REWARD';
|
||||
Reference in New Issue
Block a user