2019-01-22 12:15:29 +00:00
|
|
|
-- +goose Up
|
2018-08-09 21:55:02 +00:00
|
|
|
CREATE TABLE maker.frob (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
|
2019-02-20 19:39:37 +00:00
|
|
|
ilk INTEGER NOT NULL REFERENCES maker.ilks (id),
|
2018-10-22 19:37:59 +00:00
|
|
|
urn TEXT,
|
2018-08-28 19:16:39 +00:00
|
|
|
dink NUMERIC,
|
|
|
|
dart NUMERIC,
|
2018-08-09 21:55:02 +00:00
|
|
|
ink NUMERIC,
|
|
|
|
art NUMERIC,
|
2018-08-30 23:51:56 +00:00
|
|
|
iart NUMERIC,
|
2018-10-22 19:37:59 +00:00
|
|
|
log_idx INTEGER NOT NUll,
|
2018-08-30 23:51:56 +00:00
|
|
|
tx_idx INTEGER NOT NUll,
|
|
|
|
raw_log JSONB,
|
2018-10-22 19:37:59 +00:00
|
|
|
UNIQUE (header_id, tx_idx, log_idx)
|
2018-10-26 13:26:36 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
ALTER TABLE public.checked_headers
|
2019-01-22 12:15:29 +00:00
|
|
|
ADD COLUMN frob_checked BOOLEAN NOT NULL DEFAULT FALSE;
|
|
|
|
|
2019-01-22 14:07:11 +00:00
|
|
|
|
2019-01-22 12:15:29 +00:00
|
|
|
-- +goose Down
|
|
|
|
DROP TABLE maker.frob;
|
|
|
|
|
|
|
|
ALTER TABLE public.checked_headers
|
2019-01-22 14:07:11 +00:00
|
|
|
DROP COLUMN frob_checked;
|