2021-08-29 18:55:44 +00:00
|
|
|
-- +goose Up
|
|
|
|
CREATE TABLE IF NOT EXISTS public.blocks (
|
2022-03-22 00:53:48 +00:00
|
|
|
block_number BIGINT NOT NULL,
|
2022-03-28 23:22:57 +00:00
|
|
|
key TEXT NOT NULL,
|
2022-03-22 00:53:48 +00:00
|
|
|
data BYTEA NOT NULL,
|
|
|
|
PRIMARY KEY (key, block_number)
|
2021-08-29 18:55:44 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
-- +goose Down
|
|
|
|
DROP TABLE public.blocks;
|