Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
Remove bid_id unique constraint for Tend and Dent (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman authored Oct 9, 2018
1 parent c549b0b commit 3d0b74e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
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);
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
ALTER TABLE maker.tend
drop constraint tend_bid_id_key;

ALTER TABLE maker.dent
drop constraint dent_bid_id_key;
16 changes: 0 additions & 16 deletions db/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1477,14 +1477,6 @@ ALTER TABLE ONLY maker.deal
ADD CONSTRAINT deal_pkey PRIMARY KEY (id);


--
-- Name: dent dent_bid_id_key; Type: CONSTRAINT; Schema: maker; Owner: -
--

ALTER TABLE ONLY maker.dent
ADD CONSTRAINT dent_bid_id_key UNIQUE (bid_id);


--
-- Name: dent dent_header_id_tx_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
--
Expand Down Expand Up @@ -1677,14 +1669,6 @@ ALTER TABLE ONLY maker.price_feeds
ADD CONSTRAINT price_feeds_pkey PRIMARY KEY (id);


--
-- Name: tend tend_bid_id_key; Type: CONSTRAINT; Schema: maker; Owner: -
--

ALTER TABLE ONLY maker.tend
ADD CONSTRAINT tend_bid_id_key UNIQUE (bid_id);


--
-- Name: tend tend_header_id_tx_idx_key; Type: CONSTRAINT; Schema: maker; Owner: -
--
Expand Down

0 comments on commit 3d0b74e

Please sign in to comment.