diff --git a/evm-exporter/migrations/block_info.sql b/evm-exporter/migrations/block_info.sql index 877a7a1..24ba851 100644 --- a/evm-exporter/migrations/block_info.sql +++ b/evm-exporter/migrations/block_info.sql @@ -2,9 +2,9 @@ CREATE TABLE IF NOT EXISTS block_info ( id BIGSERIAL PRIMARY KEY, block_hash CHARACTER VARYING(128) NOT NULL, block_height CHARACTER VARYING(128) NOT NULL, - block JSONB NOT NULL, - receipt JSONB NOT NULL, - statuses JSONB NOT NULL + block TEXT NOT NULL, + receipt TEXT NOT NULL, + statuses TEXT NOT NULL ); CREATE INDEX IF NOT EXISTS block_info_block_hash_idx ON block_info(block_hash); diff --git a/evm-exporter/migrations/pending_byte_code.sql b/evm-exporter/migrations/pending_byte_code.sql index 864a317..95c54f7 100644 --- a/evm-exporter/migrations/pending_byte_code.sql +++ b/evm-exporter/migrations/pending_byte_code.sql @@ -1,6 +1,6 @@ CREATE TABLE IF NOT EXISTS pending_byte_code ( id BIGSERIAL PRIMARY KEY, - code JSONB NOT NULL, + code TEXT NOT NULL, address CHARACTER VARYING(64) NOT NULL ); diff --git a/evm-exporter/migrations/transactions.sql b/evm-exporter/migrations/transactions.sql index b72d7f7..c9439bc 100644 --- a/evm-exporter/migrations/transactions.sql +++ b/evm-exporter/migrations/transactions.sql @@ -1,7 +1,7 @@ CREATE TABLE IF NOT EXISTS transactions ( id BIGSERIAL PRIMARY KEY, transaction_hash CHARACTER VARYING(128) NOT NULL, - transaction_index JSONB NOT NULL + transaction_index TEXT NOT NULL ); CREATE INDEX IF NOT EXISTS transactions_transaction_hash_idx ON transactions(transaction_hash);