forked from cerc-io/ipld-eth-server
12 lines
417 B
SQL
12 lines
417 B
SQL
-- +goose Up
|
|
CREATE TABLE eth.storage_cids (
|
|
id SERIAL PRIMARY KEY,
|
|
state_id INTEGER NOT NULL REFERENCES eth.state_cids (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
|
|
storage_key VARCHAR(66) NOT NULL,
|
|
leaf BOOLEAN NOT NULL,
|
|
cid TEXT NOT NULL,
|
|
UNIQUE (state_id, storage_key)
|
|
);
|
|
|
|
-- +goose Down
|
|
DROP TABLE eth.storage_cids; |