~singpolyma/jmp-schemas

f9df16124e1cbd1a12c77ba06a7723f8c31a23d4 — Stephen Paul Weber 1 year, 11 months ago 2aef722
Track SIMs
4 files changed, 28 insertions(+), 0 deletions(-)

A deploy/sims.sql
A revert/sims.sql
M sqitch.plan
A verify/sims.sql
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;