Squash deal checked_headers

This commit is contained in:
Edvard 2018-10-26 15:16:07 +02:00
parent 8eb6767da9
commit 07a0c4f097
5 changed files with 8 additions and 6 deletions

View File

@ -0,0 +1,4 @@
DROP TABLE maker.deal;
ALTER TABLE public.checked_headers
DROP COLUMN deal_checked;

View File

@ -7,4 +7,7 @@ CREATE TABLE maker.deal (
tx_idx INTEGER NOT NUll, tx_idx INTEGER NOT NUll,
raw_log JSONB, raw_log JSONB,
UNIQUE (header_id, tx_idx, log_idx) UNIQUE (header_id, tx_idx, log_idx)
); );
ALTER TABLE public.checked_headers
ADD COLUMN deal_checked BOOLEAN NOT NULL DEFAULT FALSE;

View File

@ -1 +0,0 @@
DROP TABLE maker.deal;

View File

@ -1,2 +0,0 @@
ALTER TABLE public.checked_headers
DROP COLUMN deal_checked;

View File

@ -1,2 +0,0 @@
ALTER TABLE public.checked_headers
ADD COLUMN deal_checked BOOLEAN NOT NULL DEFAULT FALSE;