A deploy/snikket_instances.sql => deploy/snikket_instances.sql +14 -0
@@ 0,0 1,14 @@
+-- Deploy jmp:snikket_instances to pg
+
+BEGIN;
+
+CREATE TABLE snikket_instances (
+ instance_id TEXT PRIMARY KEY,
+ customer_id TEXT NOT NULL,
+ domain TEXT UNIQUE NOT NULL,
+ bootstrap_token TEXT NOT NULL
+);
+
+CREATE INDEX ON snikket_instances (customer_id);
+
+COMMIT;
A revert/snikket_instances.sql => revert/snikket_instances.sql +7 -0
@@ 0,0 1,7 @@
+-- Revert jmp:snikket_instances from pg
+
+BEGIN;
+
+DROP TABLE snikket_instances;
+
+COMMIT;
M sqitch.plan => sqitch.plan +3 -0
@@ 51,3 51,6 @@ sims 2022-10-19T15:23:24Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> #
area_codes 2023-02-06T15:30:19Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # Create table for geography lookup of area codes
sim_nicks 2023-02-01T19:02:47Z Nico <nico@pop-os> # Add column for SIM nickname.
@2023046 2023-02-15T20:52:50Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # area_codes and sims.nickname
+
+snikket_instances 2023-03-28T18:47:40Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # Store association between billing account and snikket instance
+@2023087 2023-03-28T20:00:44Z Stephen Paul Weber,,, <singpolyma@singpolyma-beefy> # Deploy snikket_instances table
A verify/snikket_instances.sql => verify/snikket_instances.sql +7 -0
@@ 0,0 1,7 @@
+-- Verify jmp:snikket_instances on pg
+
+BEGIN;
+
+SELECT instance_id, customer_id, domain, bootstrap_token FROM snikket_instances;
+
+ROLLBACK;