ipld-eth-server/db/migrations/00030_create_receipt_cids_table.sql
2019-12-02 13:24:46 -06:00

9 lines
273 B
SQL

-- +goose Up
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
);
-- +goose Down
DROP TABLE public.receipt_cids;