forked from cerc-io/ipfs-ethdb
9 lines
246 B
MySQL
9 lines
246 B
MySQL
|
-- +goose Up
|
||
|
CREATE TABLE IF NOT EXISTS eth.key_preimages (
|
||
|
eth_key BYTEA UNIQUE NOT NULL,
|
||
|
ipfs_key TEXT NOT NULL REFERENCES public.blocks (key) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED
|
||
|
);
|
||
|
|
||
|
-- +goose Down
|
||
|
DROP TABLE eth.key_preimages;
|