Add log index to Frob
This commit is contained in:
+3
-2
@@ -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);
|
||||
|
||||
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user