This repository has been archived by the owner on Aug 31, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove bid_id unique constraint for Tend and Dent (#48)
- Loading branch information
1 parent
c549b0b
commit 3d0b74e
Showing
3 changed files
with
10 additions
and
16 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
db/migrations/1538580167_remove_bid_id_unique_constraint.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
5 changes: 5 additions & 0 deletions
5
db/migrations/1538580167_remove_bid_id_unique_constraint.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters