write code to pg-ipfs table, for codehash lookups

This commit is contained in:
Ian Norden
2020-08-12 09:26:18 -05:00
parent 52b5c99760
commit 39354b2114
12 changed files with 627 additions and 663 deletions
@@ -8,6 +8,8 @@ CREATE TABLE eth.transaction_cids (
mh_key TEXT NOT NULL REFERENCES public.blocks (key) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
dst VARCHAR(66) NOT NULL,
src VARCHAR(66) NOT NULL,
deployment BOOL NOT NULL,
data BYTEA,
UNIQUE (header_id, tx_hash)
);