ipld-eth-db/db/migrations/00022_create_eth_blob_hash_cids_table.sql
Roy Crihfield 82988a3472
All checks were successful
Docker Build / Dummy job (pull_request) Successful in 4s
Docker Build / Run docker build (pull_request) Successful in 28s
Add eth.blob_hashes table
Map transaction hashes to (externally stored) blob versioned hashes.
2024-07-01 14:08:03 +08:00

13 lines
307 B
SQL

-- +goose Up
CREATE TABLE eth.blob_hashes (
tx_hash VARCHAR(66) NOT NULL,
index INTEGER NOT NULL,
blob_hash BYTEA NOT NULL
);
CREATE UNIQUE INDEX blob_hashes_tx_hash_index ON eth.blob_hashes(tx_hash, index);
-- +goose Down
DROP INDEX eth.blob_hashes_tx_hash_index;
DROP TABLE eth.blob_hashes;