-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #293 from biocore/st_dh_hotfix_vioscreen
Vioscreen Hotfix - Registry Table
- Loading branch information
Showing
6 changed files
with
82 additions
and
7 deletions.
There are no files selected for viewing
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
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
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
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,14 @@ | ||
-- create table to track vioscreen survey ids | ||
CREATE TABLE ag.vioscreen_registry | ||
( | ||
account_id uuid NOT NULL, | ||
source_id uuid NOT NULL, | ||
sample_id uuid, | ||
vio_id varchar NOT NULL, | ||
CONSTRAINT fk_account FOREIGN KEY (account_id) REFERENCES ag.account( id ), | ||
CONSTRAINT fk_source FOREIGN KEY (source_id) REFERENCES ag.source( id ), | ||
CONSTRAINT fk_sample FOREIGN KEY (sample_id) REFERENCES ag.ag_kit_barcodes( ag_kit_barcode_id ) | ||
); | ||
|
||
CREATE INDEX vio_reg_by_vio_id ON ag.vioscreen_registry (vio_id); | ||
CREATE INDEX vio_reg_by_sample ON ag.vioscreen_registry (account_id, source_id, sample_id); |
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
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