2019-03-22 03:43:06 +00:00
|
|
|
-- +goose Up
|
2019-05-01 06:02:30 +00:00
|
|
|
CREATE TABLE header_sync_receipts(
|
2019-03-22 03:43:06 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
2019-05-01 06:02:30 +00:00
|
|
|
transaction_id INTEGER NOT NULL REFERENCES header_sync_transactions(id) ON DELETE CASCADE,
|
2019-03-22 03:43:06 +00:00
|
|
|
header_id INTEGER NOT NULL REFERENCES headers(id) ON DELETE CASCADE,
|
|
|
|
contract_address VARCHAR(42),
|
|
|
|
cumulative_gas_used NUMERIC,
|
|
|
|
gas_used NUMERIC,
|
|
|
|
state_root VARCHAR(66),
|
|
|
|
status INTEGER,
|
|
|
|
tx_hash VARCHAR(66),
|
2019-03-21 19:52:24 +00:00
|
|
|
rlp BYTEA,
|
2019-03-22 03:43:06 +00:00
|
|
|
UNIQUE(header_id, transaction_id)
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
-- +goose Down
|
2019-05-01 06:02:30 +00:00
|
|
|
DROP TABLE header_sync_receipts;
|