From 99dc12c1fd977c50eb14a5e122652e10422f8364 Mon Sep 17 00:00:00 2001 From: Elizabeth Engelman Date: Thu, 1 Nov 2018 15:03:08 -0500 Subject: [PATCH] Squash changes to tend and dent tables --- db/migrations/1534295712_create_tend.up.sql | 4 ++-- db/migrations/1534799167_create_dent.up.sql | 4 ++-- .../1538580167_remove_bid_id_unique_constraint.down.sql | 5 ----- .../1538580167_remove_bid_id_unique_constraint.up.sql | 5 ----- 4 files changed, 4 insertions(+), 14 deletions(-) delete mode 100644 db/migrations/1538580167_remove_bid_id_unique_constraint.down.sql delete mode 100644 db/migrations/1538580167_remove_bid_id_unique_constraint.up.sql diff --git a/db/migrations/1534295712_create_tend.up.sql b/db/migrations/1534295712_create_tend.up.sql index 2912b673..8c6a162f 100644 --- a/db/migrations/1534295712_create_tend.up.sql +++ b/db/migrations/1534295712_create_tend.up.sql @@ -1,7 +1,7 @@ CREATE TABLE maker.tend ( id SERIAL PRIMARY KEY, header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE, - bid_id NUMERIC NOT NULL UNIQUE, + bid_id NUMERIC NOT NULL, lot NUMERIC, bid NUMERIC, guy TEXT, @@ -13,4 +13,4 @@ CREATE TABLE maker.tend ( ); ALTER TABLE public.checked_headers - ADD COLUMN tend_checked BOOLEAN NOT NULL DEFAULT FALSE; \ No newline at end of file + ADD COLUMN tend_checked BOOLEAN NOT NULL DEFAULT FALSE; diff --git a/db/migrations/1534799167_create_dent.up.sql b/db/migrations/1534799167_create_dent.up.sql index 1358f3ec..3e408aab 100644 --- a/db/migrations/1534799167_create_dent.up.sql +++ b/db/migrations/1534799167_create_dent.up.sql @@ -1,7 +1,7 @@ CREATE TABLE maker.dent ( id SERIAL PRIMARY KEY, header_id INTEGER NOT NULL REFERENCES headers (id) ON DELETE CASCADE, - bid_id NUMERIC NOT NULL UNIQUE, + bid_id NUMERIC NOT NULL, lot NUMERIC, bid NUMERIC, guy BYTEA, @@ -13,4 +13,4 @@ CREATE TABLE maker.dent ( ); ALTER TABLE public.checked_headers - ADD COLUMN dent_checked BOOLEAN NOT NULL DEFAULT FALSE; \ No newline at end of file + ADD COLUMN dent_checked BOOLEAN NOT NULL DEFAULT FALSE; diff --git a/db/migrations/1538580167_remove_bid_id_unique_constraint.down.sql b/db/migrations/1538580167_remove_bid_id_unique_constraint.down.sql deleted file mode 100644 index 33dc29cb..00000000 --- a/db/migrations/1538580167_remove_bid_id_unique_constraint.down.sql +++ /dev/null @@ -1,5 +0,0 @@ -ALTER TABLE maker.tend - add constraint tend_bid_id_key unique (bid_id); - -ALTER TABLE maker.dent - add constraint dent_bid_id_key unique (bid_id); diff --git a/db/migrations/1538580167_remove_bid_id_unique_constraint.up.sql b/db/migrations/1538580167_remove_bid_id_unique_constraint.up.sql deleted file mode 100644 index 65af04c3..00000000 --- a/db/migrations/1538580167_remove_bid_id_unique_constraint.up.sql +++ /dev/null @@ -1,5 +0,0 @@ -ALTER TABLE maker.tend - drop constraint tend_bid_id_key; - -ALTER TABLE maker.dent - drop constraint dent_bid_id_key;