Add log index to Frob

This commit is contained in:
Rob Mulholand
2018-10-23 15:25:21 -05:00
parent b3d00fe3c5
commit a0a86871b5
10 changed files with 48 additions and 28 deletions
+3 -2
View File
@@ -507,6 +507,7 @@ CREATE TABLE maker.frob (
ink numeric,
art numeric,
iart numeric,
log_idx integer NOT NULL,
tx_idx integer NOT NULL,
raw_log jsonb
);
@@ -1912,11 +1913,11 @@ ALTER TABLE ONLY maker.flop_kick
--
-- Name: frob frob_header_id_tx_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
-- Name: frob frob_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
--
ALTER TABLE ONLY maker.frob
ADD CONSTRAINT frob_header_id_tx_idx_key UNIQUE (header_id, tx_idx);
ADD CONSTRAINT frob_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
--