forked from cerc-io/ipld-eth-server
d9e2bece27
- Facilitate modifying migrations without cascading consequences for later migrations updating the same tables
16 lines
385 B
SQL
16 lines
385 B
SQL
-- +goose Up
|
|
CREATE TABLE transactions (
|
|
id SERIAL PRIMARY KEY,
|
|
block_id INTEGER NOT NULL REFERENCES blocks(id) ON DELETE CASCADE,
|
|
input_data VARCHAR,
|
|
tx_from VARCHAR(66),
|
|
gaslimit NUMERIC,
|
|
gasprice NUMERIC,
|
|
hash VARCHAR(66),
|
|
nonce NUMERIC,
|
|
tx_to VARCHAR(66),
|
|
"value" NUMERIC
|
|
);
|
|
|
|
-- +goose Down
|
|
DROP TABLE transactions; |