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,
|
|
|
|
block_id INTEGER NOT NULL REFERENCES blocks(id) ON DELETE CASCADE,
|
|
|
|
gaslimit NUMERIC,
|
|
|
|
gasprice NUMERIC,
|
|
|
|
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;
|