ipld-eth-db/db/migrations/00001_create_ipfs_blocks_table.sql

11 lines
219 B
SQL

-- +goose Up
CREATE TABLE IF NOT EXISTS public.blocks (
block_number BIGINT NOT NULL,
cid TEXT NOT NULL,
data BYTEA NOT NULL,
PRIMARY KEY (key, block_number)
);
-- +goose Down
DROP TABLE public.blocks;