2019-03-19 19:39:26 +00:00
|
|
|
-- +goose Up
|
2019-05-01 06:02:30 +00:00
|
|
|
CREATE TABLE header_sync_transactions (
|
2019-03-27 04:05:30 +00:00
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
header_id INTEGER NOT NULL REFERENCES headers(id) ON DELETE CASCADE,
|
2019-03-22 03:43:06 +00:00
|
|
|
hash VARCHAR(66),
|
|
|
|
gas_limit NUMERIC,
|
|
|
|
gas_price NUMERIC,
|
2019-03-27 04:05:30 +00:00
|
|
|
input_data BYTEA,
|
|
|
|
nonce NUMERIC,
|
|
|
|
raw BYTEA,
|
2019-03-22 03:43:06 +00:00
|
|
|
tx_from VARCHAR(44),
|
2019-03-27 04:05:30 +00:00
|
|
|
tx_index INTEGER,
|
2019-03-22 03:43:06 +00:00
|
|
|
tx_to VARCHAR(44),
|
2019-03-27 04:05:30 +00:00
|
|
|
"value" NUMERIC,
|
2019-03-19 19:39:26 +00:00
|
|
|
UNIQUE (header_id, hash)
|
|
|
|
);
|
|
|
|
|
|
|
|
-- +goose Down
|
2019-05-01 06:02:30 +00:00
|
|
|
DROP TABLE header_sync_transactions;
|