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

11 lines
218 B
MySQL
Raw Normal View History

2021-08-29 18:55:44 +00:00
-- +goose Up
CREATE TABLE IF NOT EXISTS public.blocks (
block_number BIGINT NOT NULL,
key TEXT UNIQUE NOT NULL,
data BYTEA NOT NULL,
PRIMARY KEY (key, block_number)
2021-08-29 18:55:44 +00:00
);
-- +goose Down
DROP TABLE public.blocks;