Skip to content

Commit

Permalink
change migration sql from JSONB into TEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
tommady committed Aug 15, 2024
1 parent 5774cda commit 493d7b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions evm-exporter/migrations/block_info.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion evm-exporter/migrations/pending_byte_code.sql
Original file line number Diff line number Diff line change
@@ -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
);

Expand Down
2 changes: 1 addition & 1 deletion evm-exporter/migrations/transactions.sql
Original file line number Diff line number Diff line change
@@ -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);

0 comments on commit 493d7b1

Please sign in to comment.