forked from cerc-io/ipld-eth-server
925b1b0b1c
- This reverts commit 4e2536bf421fd9d2c9067d81f30e0f45c6b94fe7. - Restore timestamped migrations so goose fix can handle ordering dynamically with plugins also supplying timestamp based migrations
39 lines
800 B
SQL
39 lines
800 B
SQL
-- +goose Up
|
|
ALTER TABLE transactions
|
|
RENAME COLUMN tx_hash TO hash;
|
|
|
|
ALTER TABLE transactions
|
|
RENAME COLUMN tx_nonce TO nonce;
|
|
|
|
ALTER TABLE transactions
|
|
RENAME COLUMN tx_gaslimit TO gaslimit;
|
|
|
|
ALTER TABLE transactions
|
|
RENAME COLUMN tx_gasprice TO gasprice;
|
|
|
|
ALTER TABLE transactions
|
|
RENAME COLUMN tx_value TO value;
|
|
|
|
ALTER TABLE transactions
|
|
RENAME COLUMN tx_input_data TO input_data;
|
|
|
|
|
|
-- +goose Down
|
|
ALTER TABLE transactions
|
|
RENAME COLUMN hash TO tx_hash;
|
|
|
|
ALTER TABLE transactions
|
|
RENAME COLUMN nonce TO tx_nonce;
|
|
|
|
ALTER TABLE transactions
|
|
RENAME COLUMN gaslimit TO tx_gaslimit;
|
|
|
|
ALTER TABLE transactions
|
|
RENAME COLUMN gasprice TO tx_gasprice;
|
|
|
|
ALTER TABLE transactions
|
|
RENAME COLUMN value TO tx_value;
|
|
|
|
ALTER TABLE transactions
|
|
RENAME COLUMN input_data TO tx_input_data;
|