2019-04-15 16:30:41 +00:00
|
|
|
-- +goose Up
|
2020-01-31 19:25:15 +00:00
|
|
|
CREATE TABLE eth.receipt_cids (
|
2019-04-15 16:30:41 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
2020-01-31 19:25:15 +00:00
|
|
|
tx_id INTEGER NOT NULL REFERENCES eth.transaction_cids (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
|
2021-09-16 12:49:42 +00:00
|
|
|
leaf_cid TEXT NOT NULL,
|
|
|
|
leaf_mh_key TEXT NOT NULL REFERENCES public.blocks (key) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
|
2019-06-20 15:59:10 +00:00
|
|
|
contract VARCHAR(66),
|
2020-07-13 15:39:51 +00:00
|
|
|
contract_hash VARCHAR(66),
|
2021-03-12 15:50:48 +00:00
|
|
|
post_state VARCHAR(66),
|
|
|
|
post_status INTEGER,
|
2021-08-20 07:37:11 +00:00
|
|
|
log_root VARCHAR(66),
|
2020-07-13 15:39:51 +00:00
|
|
|
UNIQUE (tx_id)
|
2019-04-15 16:30:41 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
-- +goose Down
|
2020-01-31 19:25:15 +00:00
|
|
|
DROP TABLE eth.receipt_cids;
|