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