diff --git a/screening/source/sql/postgresql/migration/migration-074-075.sql b/screening/source/sql/postgresql/migration/migration-074-075.sql new file mode 100644 index 0000000000000000000000000000000000000000..68dc983639ebaf4bae08587a87a3356e1f7e243f --- /dev/null +++ b/screening/source/sql/postgresql/migration/migration-074-075.sql @@ -0,0 +1,10 @@ +--------------------------------------------- +-- the property "DESCRIPTION" should be optional for materials "VIRUS", "BACTERIUM", "COMPOUND" +-- (screening-specific requirement) +--------------------------------------------- +UPDATE material_type_property_types + SET is_mandatory=FALSE + WHERE + maty_id IN (SELECT id FROM material_types WHERE code IN ('VIRUS', 'BACTERIUM', 'COMPOUND')) + AND + prty_id = (SELECT id FROM property_types WHERE code='DESCRIPTION');