2019-03-19 19:39:26 +00:00
|
|
|
-- +goose Up
|
|
|
|
CREATE TABLE light_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,
|
|
|
|
hash TEXT,
|
2019-04-04 20:21:39 +00:00
|
|
|
gas_limit NUMERIC,
|
|
|
|
gas_price NUMERIC,
|
2019-03-27 04:05:30 +00:00
|
|
|
input_data BYTEA,
|
|
|
|
nonce NUMERIC,
|
|
|
|
raw BYTEA,
|
|
|
|
tx_from TEXT,
|
|
|
|
tx_index INTEGER,
|
|
|
|
tx_to TEXT,
|
|
|
|
"value" NUMERIC,
|
2019-03-19 19:39:26 +00:00
|
|
|
UNIQUE (header_id, hash)
|
|
|
|
);
|
|
|
|
|
|
|
|
-- +goose Down
|
|
|
|
DROP TABLE light_sync_transactions;
|