2021-08-29 18:55:44 +00:00
|
|
|
-- +goose Up
|
|
|
|
CREATE TABLE eth.receipt_cids (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
tx_id INTEGER NOT NULL REFERENCES eth.transaction_cids (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
|
2021-09-30 12:39:48 +00:00
|
|
|
leaf_cid TEXT NOT NULL,
|
|
|
|
leaf_mh_key TEXT NOT NULL REFERENCES public.blocks (key) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
|
2021-08-29 18:55:44 +00:00
|
|
|
contract VARCHAR(66),
|
|
|
|
contract_hash VARCHAR(66),
|
|
|
|
post_state VARCHAR(66),
|
|
|
|
post_status INTEGER,
|
2021-09-10 18:51:47 +00:00
|
|
|
log_root VARCHAR(66),
|
2021-08-29 18:55:44 +00:00
|
|
|
UNIQUE (tx_id)
|
|
|
|
);
|
|
|
|
|
|
|
|
-- +goose Down
|
2021-09-30 12:39:48 +00:00
|
|
|
DROP TABLE eth.receipt_cids;
|