Remove bid_id unique constraint for Tend and Dent (#48)

This commit is contained in:
Elizabeth 2018-10-09 14:32:23 -05:00 committed by GitHub
parent 8ee106e14d
commit ed1ed979b3
3 changed files with 10 additions and 16 deletions

View File

@ -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);

View File

@ -0,0 +1,5 @@
ALTER TABLE maker.tend
drop constraint tend_bid_id_key;
ALTER TABLE maker.dent
drop constraint dent_bid_id_key;

View File

@ -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: -
--
@ -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: -
--