A deploy/invites_rewarded_at.sql => deploy/invites_rewarded_at.sql +8 -0
@@ 0,0 1,8 @@
+-- Deploy jmp:invites_rewarded_at to pg
+-- requires: invites
+
+BEGIN;
+
+ALTER TABLE invites ADD rewarded_at TIMESTAMP;
+
+COMMIT;
A revert/invites_rewarded_at.sql => revert/invites_rewarded_at.sql +7 -0
@@ 0,0 1,7 @@
+-- Revert jmp:invites_rewarded_at from pg
+
+BEGIN;
+
+ALTER TABLE invites DROP rewarded_at;
+
+COMMIT;
M sqitch.plan => sqitch.plan +3 -0
@@ 29,3 29,6 @@ cdr_with_charge_faster [cdr_with_charge] 2022-02-08T17:12:16Z Stephen Paul Weber
cdr_with_charge_rate_when_no_plan [cdr_with_charge_faster] 2022-02-09T01:55:13Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # Get a default rate when customer has no plan
@2022040 2022-02-09T16:08:26Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # Default rate for customers with no plan
+
+invites_rewarded_at [invites] 2022-02-22T16:54:33Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # Add rewarded_at to invites so we can track rewards\n\nNeed this because we don't reward right at use, but later after they have paid.
+@2022075 2022-03-16T14:08:42Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # invites.rewarded_at
A verify/invites_rewarded_at.sql => verify/invites_rewarded_at.sql +7 -0
@@ 0,0 1,7 @@
+-- Verify jmp:invites_rewarded_at on pg
+
+BEGIN;
+
+SELECT rewarded_at FROM invites;
+
+ROLLBACK;