From 66047ca2c79dd05c77934d63dbd98addbf5fb336 Mon Sep 17 00:00:00 2001 From: tommady Date: Thu, 15 Aug 2024 12:19:07 +0000 Subject: [PATCH] change migration sql height from bigserial into serial --- evm-exporter/migrations/allowances.sql | 2 +- evm-exporter/migrations/balance.sql | 2 +- evm-exporter/migrations/byte_code.sql | 2 +- evm-exporter/migrations/common.sql | 4 ++-- evm-exporter/migrations/issuance.sql | 2 +- evm-exporter/migrations/nonce.sql | 2 +- evm-exporter/migrations/state.sql | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/evm-exporter/migrations/allowances.sql b/evm-exporter/migrations/allowances.sql index 1817ef4..15304f6 100644 --- a/evm-exporter/migrations/allowances.sql +++ b/evm-exporter/migrations/allowances.sql @@ -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 BIGSERIAL NOT NULL + height SERIAL NOT NULL ); CREATE INDEX IF NOT EXISTS allowances_owner_idx ON allowances(owner); diff --git a/evm-exporter/migrations/balance.sql b/evm-exporter/migrations/balance.sql index 31a8a9f..9ffeb12 100644 --- a/evm-exporter/migrations/balance.sql +++ b/evm-exporter/migrations/balance.sql @@ -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 BIGSERIAL NOT NULL + height SERIAL NOT NULL ); CREATE INDEX IF NOT EXISTS balance_address_idx ON balance(address); diff --git a/evm-exporter/migrations/byte_code.sql b/evm-exporter/migrations/byte_code.sql index fc6f1ea..9f296ed 100644 --- a/evm-exporter/migrations/byte_code.sql +++ b/evm-exporter/migrations/byte_code.sql @@ -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 BIGSERIAL NOT NULL + height SERIAL NOT NULL ); CREATE INDEX IF NOT EXISTS byte_code_address_idx ON byte_code(address); diff --git a/evm-exporter/migrations/common.sql b/evm-exporter/migrations/common.sql index 7172d56..21a08f1 100644 --- a/evm-exporter/migrations/common.sql +++ b/evm-exporter/migrations/common.sql @@ -1,6 +1,6 @@ CREATE TABLE IF NOT EXISTS common ( - latest_height BIGSERIAL NOT NULL, - lowest_height BIGSERIAL NOT NULL + latest_height SERIAL NOT NULL, + lowest_height SERIAL NOT NULL ); CREATE INDEX IF NOT EXISTS common_latest_height_idx ON common(latest_height); diff --git a/evm-exporter/migrations/issuance.sql b/evm-exporter/migrations/issuance.sql index 31c3d04..fbe63d1 100644 --- a/evm-exporter/migrations/issuance.sql +++ b/evm-exporter/migrations/issuance.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS issuance ( id BIGSERIAL PRIMARY KEY, value CHARACTER VARYING(128) NOT NULL, - height BIGSERIAL NOT NULL + height SERIAL NOT NULL ); CREATE INDEX IF NOT EXISTS issuance_height_idx ON issuance(height); diff --git a/evm-exporter/migrations/nonce.sql b/evm-exporter/migrations/nonce.sql index 794f770..fc5d24d 100644 --- a/evm-exporter/migrations/nonce.sql +++ b/evm-exporter/migrations/nonce.sql @@ -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 BIGSERIAL NOT NULL + height SERIAL NOT NULL ); CREATE INDEX IF NOT EXISTS nonce_address_idx ON nonce(address); diff --git a/evm-exporter/migrations/state.sql b/evm-exporter/migrations/state.sql index 4ba15f5..5a912b3 100644 --- a/evm-exporter/migrations/state.sql +++ b/evm-exporter/migrations/state.sql @@ -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 BIGSERIAL NOT NULL + height SERIAL NOT NULL ); CREATE INDEX IF NOT EXISTS state_address_idx ON state(address);