A deploy/sims.sql => deploy/sims.sql +12 -0
@@ 0,0 1,12 @@
+-- Deploy jmp:sims to pg
+
+BEGIN;
+
+CREATE TABLE sims (
+ iccid TEXT PRIMARY KEY,
+ customer_id TEXT
+);
+
+CREATE INDEX ON sims (customer_id);
+
+COMMIT;
A revert/sims.sql => revert/sims.sql +7 -0
@@ 0,0 1,7 @@
+-- Revert jmp:sims from pg
+
+BEGIN;
+
+DROP TABLE sims;
+
+COMMIT;
M sqitch.plan => sqitch.plan +2 -0
@@ 44,3 44,5 @@ notify_possible_renewal_on_expired_top_up [transactions customer_plans] 2022-04-
parent_customer_id [plan_log customer_plans balances transactions] 2022-08-03T17:50:38Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # Add parent_customer_id to plan_log\n\ncustomer_plans should include the parent\nbalance comes from parent where present\ntransactions should insert to parent where present
@2022234 2022-08-22T14:04:40Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # Multi account billing
+
+sims 2022-10-19T15:23:24Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # Add table to track SIMs
A verify/sims.sql => verify/sims.sql +7 -0
@@ 0,0 1,7 @@
+-- Verify jmp:sims on pg
+
+BEGIN;
+
+SELECT iccid, customer_id FROM sims;
+
+ROLLBACK;