forked from cerc-io/ipld-eth-server
aea9c7b5e2
* Separate Repository into multiple Repositories * Use struct scan for transactions * Use struct scan for blocks * Remove unused block repo methods * Update naming * Rename / Cleanup repository related fields
18 lines
510 B
PL/PgSQL
18 lines
510 B
PL/PgSQL
BEGIN;
|
|
ALTER TABLE blocks
|
|
ALTER COLUMN block_gaslimit TYPE BIGINT USING block_gaslimit :: BIGINT;
|
|
|
|
ALTER TABLE blocks
|
|
ALTER COLUMN block_gasused TYPE BIGINT USING block_gasused :: BIGINT;
|
|
|
|
ALTER TABLE blocks
|
|
ALTER COLUMN block_time TYPE BIGINT USING block_time :: BIGINT;
|
|
|
|
ALTER TABLE blocks
|
|
ALTER COLUMN block_reward TYPE DOUBLE PRECISION USING block_time :: DOUBLE PRECISION;
|
|
|
|
ALTER TABLE blocks
|
|
ALTER COLUMN block_uncles_reward TYPE DOUBLE PRECISION USING block_time :: DOUBLE PRECISION;
|
|
|
|
COMMIT;
|