Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make db changes to allow storing of nonsense crisprs and designs
- Loading branch information
Showing
5 changed files
with
120 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE audit.designs ADD COLUMN nonsense_design_crispr_id INT; | ||
ALTER TABLE audit.crisprs ADD COLUMN nonsense_crispr_original_crispr_id INT; |
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,4 @@ | ||
INSERT INTO schema_versions(version) VALUES (83); | ||
|
||
INSERT INTO design_types(id) VALUES( 'nonsense' ); | ||
INSERT INTO design_oligo_types(id) VALUES( 'N' ); |
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 designs ADD COLUMN nonsense_design_crispr_id INT; | ||
ALTER TABLE designs ADD foreign key (nonsense_design_crispr_id) references crisprs(id); | ||
|
||
ALTER TABLE crisprs ADD COLUMN nonsense_crispr_original_crispr_id INT; | ||
ALTER TABLE crisprs ADD foreign key (nonsense_crispr_original_crispr_id) references crisprs(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