-
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 #120 from wasade/get_create_project
Allow an admin to create a new project
- Loading branch information
Showing
5 changed files
with
113 additions
and
11 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,10 @@ | ||
ALTER TABLE barcodes.project ADD COLUMN is_microsetta BOOLEAN; | ||
UPDATE barcodes.project SET is_microsetta='no' WHERE is_microsetta IS NULL; | ||
UPDATE barcodes.project SET is_microsetta='yes' WHERE project in ('American Gut Project', | ||
'British Gut Project', | ||
'Daklapak W1', | ||
'canadian gut', | ||
'TMI - Daklapack W1', | ||
'TMI - Daklapack W2'); | ||
ALTER TABLE barcodes.project ALTER COLUMN is_microsetta SET NOT NULL; | ||
ALTER TABLE barcodes.project ADD CONSTRAINT project_unique UNIQUE (project); |
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