2019-01-22 12:15:29 +00:00
|
|
|
-- +goose Up
|
2018-10-25 10:19:46 +00:00
|
|
|
CREATE TABLE maker.vow_flog (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE,
|
|
|
|
era INTEGER NOT NULL,
|
|
|
|
log_idx INTEGER NOT NULL,
|
|
|
|
tx_idx INTEGER NOT NULL,
|
|
|
|
raw_log JSONB,
|
|
|
|
UNIQUE (header_id, tx_idx, log_idx)
|
|
|
|
);
|
|
|
|
|
|
|
|
ALTER TABLE public.checked_headers
|
2019-01-22 12:15:29 +00:00
|
|
|
ADD COLUMN vow_flog_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.vow_flog;
|
|
|
|
ALTER TABLE public.checked_headers
|
2019-01-22 14:07:11 +00:00
|
|
|
DROP COLUMN vow_flog_checked;
|