diff --git a/db/migrations/1536615440_create_deal.down.sql b/db/migrations/1536615440_create_deal.down.sql new file mode 100644 index 00000000..dc69c192 --- /dev/null +++ b/db/migrations/1536615440_create_deal.down.sql @@ -0,0 +1,4 @@ +DROP TABLE maker.deal; + +ALTER TABLE public.checked_headers + DROP COLUMN deal_checked; \ No newline at end of file diff --git a/db/migrations/1536615440_create_deal_table.up.sql b/db/migrations/1536615440_create_deal.up.sql similarity index 78% rename from db/migrations/1536615440_create_deal_table.up.sql rename to db/migrations/1536615440_create_deal.up.sql index 99d80ae9..ce5db6c6 100644 --- a/db/migrations/1536615440_create_deal_table.up.sql +++ b/db/migrations/1536615440_create_deal.up.sql @@ -7,4 +7,7 @@ CREATE TABLE maker.deal ( 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 deal_checked BOOLEAN NOT NULL DEFAULT FALSE; \ No newline at end of file diff --git a/db/migrations/1536615440_create_deal_table.down.sql b/db/migrations/1536615440_create_deal_table.down.sql deleted file mode 100644 index 0080a2d6..00000000 --- a/db/migrations/1536615440_create_deal_table.down.sql +++ /dev/null @@ -1 +0,0 @@ -DROP TABLE maker.deal; diff --git a/db/migrations/1537389741_add_deal_to_checked_headers.down.sql b/db/migrations/1537389741_add_deal_to_checked_headers.down.sql deleted file mode 100644 index be0aedb0..00000000 --- a/db/migrations/1537389741_add_deal_to_checked_headers.down.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE public.checked_headers - DROP COLUMN deal_checked; \ No newline at end of file diff --git a/db/migrations/1537389741_add_deal_to_checked_headers.up.sql b/db/migrations/1537389741_add_deal_to_checked_headers.up.sql deleted file mode 100644 index 4461287e..00000000 --- a/db/migrations/1537389741_add_deal_to_checked_headers.up.sql +++ /dev/null @@ -1,2 +0,0 @@ -ALTER TABLE public.checked_headers - ADD COLUMN deal_checked BOOLEAN NOT NULL DEFAULT FALSE; \ No newline at end of file