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