forked from cerc-io/ipld-eth-server
56ce8bdb41
- Raw field we can reference by FK for related data - Enables replay for unwatched or mistransformed diffs
12 lines
344 B
SQL
12 lines
344 B
SQL
-- +goose Up
|
|
CREATE TABLE public.header_cids (
|
|
id SERIAL PRIMARY KEY,
|
|
block_number BIGINT NOT NULL,
|
|
block_hash VARCHAR(66) NOT NULL,
|
|
cid TEXT NOT NULL,
|
|
uncle BOOLEAN NOT NULL,
|
|
UNIQUE (block_number, block_hash)
|
|
);
|
|
|
|
-- +goose Down
|
|
DROP TABLE public.header_cids; |