This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #65 from vulcanize/bigserial
use bigints for state and storage cid ids
- Loading branch information
Showing
2 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
db/migrations/00017_state_and_storage_ids_use_big_serial.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters