From 46a26f5bd915425807a215a034dc8e9613976bb7 Mon Sep 17 00:00:00 2001 From: Edvard Date: Fri, 26 Oct 2018 15:08:58 +0200 Subject: [PATCH] Squash vat_init checked_headers --- db/migrations/1536267596_create_vat_init_table.down.sql | 5 ++++- db/migrations/1536267596_create_vat_init_table.up.sql | 5 ++++- .../1538082658_add_vat_init_to_checked_headers.down.sql | 2 -- .../1538082658_add_vat_init_to_checked_headers.up.sql | 2 -- 4 files changed, 8 insertions(+), 6 deletions(-) delete mode 100644 db/migrations/1538082658_add_vat_init_to_checked_headers.down.sql delete mode 100644 db/migrations/1538082658_add_vat_init_to_checked_headers.up.sql diff --git a/db/migrations/1536267596_create_vat_init_table.down.sql b/db/migrations/1536267596_create_vat_init_table.down.sql index 49367e7c..0d41ae29 100644 --- a/db/migrations/1536267596_create_vat_init_table.down.sql +++ b/db/migrations/1536267596_create_vat_init_table.down.sql @@ -1 +1,4 @@ -DROP TABLE maker.vat_init; \ No newline at end of file +DROP TABLE maker.vat_init; + +ALTER TABLE public.checked_headers + DROP COLUMN vat_init_checked; \ No newline at end of file diff --git a/db/migrations/1536267596_create_vat_init_table.up.sql b/db/migrations/1536267596_create_vat_init_table.up.sql index 0d670d9e..38c5402d 100644 --- a/db/migrations/1536267596_create_vat_init_table.up.sql +++ b/db/migrations/1536267596_create_vat_init_table.up.sql @@ -6,4 +6,7 @@ CREATE TABLE maker.vat_init ( tx_idx INTEGER NOT NUll, raw_log JSONB, UNIQUE (header_id, tx_idx, log_idx) -); \ No newline at end of file +); + +ALTER TABLE public.checked_headers + ADD COLUMN vat_init_checked BOOLEAN NOT NULL DEFAULT FALSE; \ No newline at end of file diff --git a/db/migrations/1538082658_add_vat_init_to_checked_headers.down.sql b/db/migrations/1538082658_add_vat_init_to_checked_headers.down.sql deleted file mode 100644 index ce6abf0c..00000000 --- a/db/migrations/1538082658_add_vat_init_to_checked_headers.down.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE public.checked_headers - DROP COLUMN vat_init_checked; \ No newline at end of file diff --git a/db/migrations/1538082658_add_vat_init_to_checked_headers.up.sql b/db/migrations/1538082658_add_vat_init_to_checked_headers.up.sql deleted file mode 100644 index 4aba5cd2..00000000 --- a/db/migrations/1538082658_add_vat_init_to_checked_headers.up.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE public.checked_headers - ADD COLUMN vat_init_checked BOOLEAN NOT NULL DEFAULT FALSE; \ No newline at end of file