2019-01-22 12:15:29 +00:00
|
|
|
-- +goose Up
|
2019-03-22 03:43:06 +00:00
|
|
|
CREATE TABLE full_sync_receipts
|
2018-01-03 17:23:43 +00:00
|
|
|
(
|
2019-08-02 15:09:59 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
transaction_id INTEGER NOT NULL REFERENCES full_sync_transactions (id) ON DELETE CASCADE,
|
|
|
|
contract_address_id INTEGER NOT NULL REFERENCES addresses (id) ON DELETE CASCADE,
|
|
|
|
cumulative_gas_used NUMERIC,
|
|
|
|
gas_used NUMERIC,
|
|
|
|
state_root VARCHAR(66),
|
|
|
|
status INTEGER,
|
|
|
|
tx_hash VARCHAR(66)
|
2018-01-03 17:23:43 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
|
2019-01-22 12:15:29 +00:00
|
|
|
-- +goose Down
|
2019-03-22 03:43:06 +00:00
|
|
|
DROP TABLE full_sync_receipts;
|