Add log index to Price Feed events
This commit is contained in:
@@ -2,9 +2,10 @@ CREATE TABLE maker.price_feeds (
|
||||
id SERIAL PRIMARY KEY,
|
||||
block_number BIGINT NOT NULL,
|
||||
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
|
||||
medianizer_address bytea,
|
||||
medianizer_address TEXT,
|
||||
usd_value NUMERIC,
|
||||
log_idx INTEGER NOT NULL,
|
||||
tx_idx INTEGER NOT NULL,
|
||||
raw_log JSONB,
|
||||
UNIQUE (header_id, medianizer_address, tx_idx)
|
||||
UNIQUE (header_id, medianizer_address, tx_idx, log_idx)
|
||||
);
|
||||
Reference in New Issue
Block a user