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
17 lines
533 B
PL/PgSQL
17 lines
533 B
PL/PgSQL
BEGIN;
|
|
ALTER TABLE blocks
|
|
ALTER COLUMN block_gaslimit TYPE DOUBLE PRECISION USING block_gaslimit :: DOUBLE PRECISION;
|
|
|
|
ALTER TABLE blocks
|
|
ALTER COLUMN block_gasused TYPE DOUBLE PRECISION USING block_gasused :: DOUBLE PRECISION;
|
|
|
|
ALTER TABLE blocks
|
|
ALTER COLUMN block_time TYPE DOUBLE PRECISION USING block_time :: DOUBLE PRECISION;
|
|
|
|
ALTER TABLE blocks
|
|
ALTER COLUMN block_reward TYPE NUMERIC USING block_time :: NUMERIC;
|
|
|
|
ALTER TABLE blocks
|
|
ALTER COLUMN block_uncles_reward TYPE NUMERIC USING block_time :: NUMERIC;
|
|
|
|
COMMIT; |