81 lines
1.6 KiB
MySQL
81 lines
1.6 KiB
MySQL
|
-- +goose Up
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_number TO number;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_gaslimit TO gaslimit;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_gasused TO gasused;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_time TO time;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_difficulty TO difficulty;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_hash TO hash;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_nonce TO nonce;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_parenthash TO parenthash;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_size TO size;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_miner TO miner;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_extra_data TO extra_data;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_reward TO reward;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN block_uncles_reward TO uncles_reward;
|
||
|
|
||
|
|
||
|
-- +goose Down
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN number TO block_number;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN gaslimit TO block_gaslimit;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN gasused TO block_gasused;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN TIME TO block_time;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN difficulty TO block_difficulty;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN HASH TO block_hash;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN nonce TO block_nonce;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN parenthash TO block_parenthash;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN size TO block_size;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN miner TO block_miner;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN extra_data TO block_extra_data;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN reward TO block_reward;
|
||
|
|
||
|
ALTER TABLE blocks
|
||
|
RENAME COLUMN uncles_reward TO block_uncles_reward;
|