forked from bimberlabinternal/LabDevKitModules
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlaboratory-12.273-12.274.sql
More file actions
22 lines (20 loc) · 1.23 KB
/
laboratory-12.273-12.274.sql
File metadata and controls
22 lines (20 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
DELETE FROM laboratory.samplecategory WHERE category = 'Empty Well';
DELETE FROM laboratory.samplecategory WHERE category = 'Blank';
DELETE FROM laboratory.samplecategory WHERE category = 'Sample';
DELETE FROM laboratory.samplecategory WHERE category = 'Standard';
DELETE FROM laboratory.samplecategory WHERE category = 'NTC';
DELETE FROM laboratory.samplecategory WHERE category = 'CTL';
DELETE FROM laboratory.samplecategory WHERE category = 'STD';
DELETE FROM laboratory.samplecategory WHERE category = 'Pos Control';
DELETE FROM laboratory.samplecategory WHERE category = 'Neg Control';
DELETE FROM laboratory.samplecategory WHERE category = 'Control';
-- @SkipOnEmptySchemasBegin
INSERT INTO laboratory.samplecategory (category) VALUES ('Pos Control');
INSERT INTO laboratory.samplecategory (category) VALUES ('Neg Control');
INSERT INTO laboratory.samplecategory (category) VALUES ('Control');
INSERT INTO laboratory.samplecategory (category) VALUES ('Blank');
INSERT INTO laboratory.samplecategory (category) VALUES ('Standard');
-- @SkipOnEmptySchemasEnd
ALTER TABLE laboratory.samplecategory ADD control boolean;
UPDATE laboratory.samplecategory SET control = true;
UPDATE laboratory.samplecategory SET control = false where category = 'Unknown';