Skip to content

Commit

Permalink
change migration sql height from serial into bigserial
Browse files Browse the repository at this point in the history
  • Loading branch information
tommady committed Aug 15, 2024
1 parent 66047ca commit 424a9e6
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion evm-exporter/migrations/allowances.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CREATE TABLE IF NOT EXISTS allowances (
owner CHARACTER VARYING(64) NOT NULL,
spender CHARACTER VARYING(64) NOT NULL,
value CHARACTER VARYING(128) NOT NULL,
height SERIAL NOT NULL
height BIGSERIAL NOT NULL
);

CREATE INDEX IF NOT EXISTS allowances_owner_idx ON allowances(owner);
Expand Down
2 changes: 1 addition & 1 deletion evm-exporter/migrations/balance.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS balance (
id BIGSERIAL PRIMARY KEY,
balance CHARACTER VARYING(128) NOT NULL,
address CHARACTER VARYING(64) NOT NULL,
height SERIAL NOT NULL
height BIGSERIAL NOT NULL
);

CREATE INDEX IF NOT EXISTS balance_address_idx ON balance(address);
Expand Down
2 changes: 1 addition & 1 deletion evm-exporter/migrations/byte_code.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS byte_code (
id BIGSERIAL PRIMARY KEY,
code TEXT NOT NULL,
address CHARACTER VARYING(64) NOT NULL,
height SERIAL NOT NULL
height BIGSERIAL NOT NULL
);

CREATE INDEX IF NOT EXISTS byte_code_address_idx ON byte_code(address);
Expand Down
4 changes: 2 additions & 2 deletions evm-exporter/migrations/common.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CREATE TABLE IF NOT EXISTS common (
latest_height SERIAL NOT NULL,
lowest_height SERIAL NOT NULL
latest_height BIGSERIAL NOT NULL,
lowest_height BIGSERIAL NOT NULL
);

CREATE INDEX IF NOT EXISTS common_latest_height_idx ON common(latest_height);
Expand Down
2 changes: 1 addition & 1 deletion evm-exporter/migrations/issuance.sql
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
CREATE TABLE IF NOT EXISTS issuance (
id BIGSERIAL PRIMARY KEY,
value CHARACTER VARYING(128) NOT NULL,
height SERIAL NOT NULL
height BIGSERIAL NOT NULL
);

CREATE INDEX IF NOT EXISTS issuance_height_idx ON issuance(height);
2 changes: 1 addition & 1 deletion evm-exporter/migrations/nonce.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS nonce (
id BIGSERIAL PRIMARY KEY,
nonce CHARACTER VARYING(128) NOT NULL,
address CHARACTER VARYING(64) NOT NULL,
height SERIAL NOT NULL
height BIGSERIAL NOT NULL
);

CREATE INDEX IF NOT EXISTS nonce_address_idx ON nonce(address);
Expand Down
2 changes: 1 addition & 1 deletion evm-exporter/migrations/state.sql
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ CREATE TABLE IF NOT EXISTS state (
value CHARACTER VARYING(128) NOT NULL,
idx CHARACTER VARYING(128) NOT NULL,
address CHARACTER VARYING(64) NOT NULL,
height SERIAL NOT NULL
height BIGSERIAL NOT NULL
);

CREATE INDEX IF NOT EXISTS state_address_idx ON state(address);
Expand Down

0 comments on commit 424a9e6

Please sign in to comment.