ipld-eth-server/db/migrations/00015_create_eth_receipt_cids_table.sql

14 lines
494 B
MySQL
Raw Normal View History

2019-04-15 16:30:41 +00:00
-- +goose Up
2020-01-31 19:25:15 +00:00
CREATE TABLE eth.receipt_cids (
2019-04-15 16:30:41 +00:00
id SERIAL PRIMARY KEY,
2020-01-31 19:25:15 +00:00
tx_id INTEGER NOT NULL REFERENCES eth.transaction_cids (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED,
2019-04-30 17:48:31 +00:00
cid TEXT NOT NULL,
2019-06-20 15:59:10 +00:00
contract VARCHAR(66),
topic0s VARCHAR(66)[],
topic1s VARCHAR(66)[],
topic2s VARCHAR(66)[],
topic3s VARCHAR(66)[]
2019-04-15 16:30:41 +00:00
);
-- +goose Down
2020-01-31 19:25:15 +00:00
DROP TABLE eth.receipt_cids;