forked from cerc-io/ipld-eth-server
Add log index to Bite
This commit is contained in:
@@ -9,6 +9,7 @@ CREATE TABLE maker.bite (
|
||||
tab NUMERIC,
|
||||
nflip NUMERIC,
|
||||
tx_idx INTEGER NOT NUll,
|
||||
log_idx INTEGER NOT NUll,
|
||||
raw_log JSONB,
|
||||
UNIQUE (header_id, tx_idx)
|
||||
UNIQUE (header_id, tx_idx, log_idx)
|
||||
)
|
||||
+3
-2
@@ -72,6 +72,7 @@ CREATE TABLE maker.bite (
|
||||
tab numeric,
|
||||
nflip numeric,
|
||||
tx_idx integer NOT NULL,
|
||||
log_idx integer NOT NULL,
|
||||
raw_log jsonb
|
||||
);
|
||||
|
||||
@@ -1707,11 +1708,11 @@ ALTER TABLE ONLY public.watched_contracts ALTER COLUMN contract_id SET DEFAULT n
|
||||
|
||||
|
||||
--
|
||||
-- Name: bite bite_header_id_tx_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
||||
-- Name: bite bite_header_id_tx_idx_log_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY maker.bite
|
||||
ADD CONSTRAINT bite_header_id_tx_idx_key UNIQUE (header_id, tx_idx);
|
||||
ADD CONSTRAINT bite_header_id_tx_idx_log_idx_key UNIQUE (header_id, tx_idx, log_idx);
|
||||
|
||||
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user