forked from cerc-io/ipld-eth-server
work on mocks and unit tests
This commit is contained in:
@@ -4,6 +4,8 @@ CREATE TABLE public.transaction_cids (
|
||||
header_id INTEGER NOT NULL REFERENCES header_cids (id) ON DELETE CASCADE,
|
||||
tx_hash VARCHAR(66) NOT NULL,
|
||||
cid TEXT NOT NULL,
|
||||
dst VARCHAR(66) NOT NULL,
|
||||
src VARCHAR(66) NOT NULL,
|
||||
UNIQUE (header_id, tx_hash)
|
||||
);
|
||||
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
CREATE TABLE public.receipt_cids (
|
||||
id SERIAL PRIMARY KEY,
|
||||
tx_id INTEGER NOT NULL REFERENCES transaction_cids (id) ON DELETE CASCADE,
|
||||
cid TEXT NOT NULL
|
||||
cid TEXT NOT NULL,
|
||||
topic0s VARCHAR(66)[]
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
|
||||
Reference in New Issue
Block a user