Add eth.blob_hashes table
Map transaction hashes to (externally stored) blob versioned hashes.
This commit is contained in:
parent
fdd56e9803
commit
82988a3472
12
db/migrations/00022_create_eth_blob_hash_cids_table.sql
Normal file
12
db/migrations/00022_create_eth_blob_hash_cids_table.sql
Normal file
@ -0,0 +1,12 @@
|
||||
-- +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;
|
Loading…
Reference in New Issue
Block a user