update migrations
This commit is contained in:
parent
5b177e716c
commit
6369835757
7
db/migrations/00016_remove_deployment_from_tx_cids.sql
Normal file
7
db/migrations/00016_remove_deployment_from_tx_cids.sql
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
-- +goose Up
|
||||||
|
ALTER TABLE eth.transaction_cids
|
||||||
|
DROP COLUMN deployment;
|
||||||
|
|
||||||
|
-- +goose Down
|
||||||
|
ALTER TABLE eth.transaction_cids
|
||||||
|
ADD COLUMN deployment BOOL NOT NULL DEFAULT FALSE;
|
25
db/migrations/00017_state_and_storage_ids_use_big_serial.sql
Normal file
25
db/migrations/00017_state_and_storage_ids_use_big_serial.sql
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
-- +goose Up
|
||||||
|
ALTER TABLE eth.storage_cids
|
||||||
|
ALTER COLUMN state_id TYPE BIGINT;
|
||||||
|
|
||||||
|
ALTER TABLE eth.state_accounts
|
||||||
|
ALTER COLUMN state_id TYPE BIGINT;
|
||||||
|
|
||||||
|
ALTER TABLE eth.state_cids
|
||||||
|
ALTER COLUMN id TYPE BIGINT;
|
||||||
|
|
||||||
|
ALTER TABLE eth.storage_cids
|
||||||
|
ALTER COLUMN id TYPE BIGINT;
|
||||||
|
|
||||||
|
-- +goose Down
|
||||||
|
ALTER TABLE eth.storage_cids
|
||||||
|
ALTER COLUMN id TYPE INTEGER;
|
||||||
|
|
||||||
|
ALTER TABLE eth.state_cids
|
||||||
|
ALTER COLUMN id TYPE INTEGER;
|
||||||
|
|
||||||
|
ALTER TABLE eth.state_accounts
|
||||||
|
ALTER COLUMN state_id TYPE INTEGER;
|
||||||
|
|
||||||
|
ALTER TABLE eth.storage_cids
|
||||||
|
ALTER COLUMN state_id TYPE INTEGER;
|
Loading…
Reference in New Issue
Block a user