2019-03-18 22:21:31 +00:00
|
|
|
-- +goose Up
|
2019-03-19 19:11:26 +00:00
|
|
|
CREATE TABLE full_sync_transactions (
|
2019-03-18 22:21:31 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
2019-06-10 17:17:14 +00:00
|
|
|
block_id INTEGER NOT NULL REFERENCES eth_blocks(id) ON DELETE CASCADE,
|
2019-04-04 20:21:39 +00:00
|
|
|
gas_limit NUMERIC,
|
|
|
|
gas_price NUMERIC,
|
2019-03-18 22:21:31 +00:00
|
|
|
hash VARCHAR(66),
|
2019-03-27 04:05:30 +00:00
|
|
|
input_data BYTEA,
|
2019-03-18 22:21:31 +00:00
|
|
|
nonce NUMERIC,
|
2019-03-19 19:11:26 +00:00
|
|
|
raw BYTEA,
|
|
|
|
tx_from VARCHAR(66),
|
|
|
|
tx_index INTEGER,
|
2019-03-18 22:21:31 +00:00
|
|
|
tx_to VARCHAR(66),
|
|
|
|
"value" NUMERIC
|
|
|
|
);
|
|
|
|
|
|
|
|
-- +goose Down
|
2019-03-19 19:11:26 +00:00
|
|
|
DROP TABLE full_sync_transactions;
|