Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit a6497af

Browse files
SORMAS-Foundation#2949 - Performance upgrade
1 parent 647a234 commit a6497af

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sormas-backend/src/main/resources/sql/sormas_schema.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5877,7 +5877,7 @@ UPDATE epidata SET contactwithsourcecaseknown = 'YES' WHERE directcontactconfirm
58775877
DROP COLUMN kindofexposuredetails, DROP COLUMN animalvaccinationstatus, DROP COLUMN dogs, DROP COLUMN cats, DROP COLUMN canidae, DROP COLUMN rabbits, DROP COLUMN prophylaxisstatus,
58785878
DROP COLUMN dateofprophylaxis, DROP COLUMN visitedhealthfacility, DROP COLUMN contactwithsourcerespiratorycase, DROP COLUMN visitedanimalmarket, DROP COLUMN camels, DROP COLUMN snakes;*/
58795879

5880-
UPDATE epidata SET exposuredetailsknown = 'YES' WHERE (exposuredetailsknown IS NULL OR exposuredetailsknown != 'YES') AND (SELECT COUNT(id) FROM exposures WHERE exposures.epidata_id = epidata.id LIMIT 1) > 0;
5880+
UPDATE epidata SET exposuredetailsknown = 'YES' FROM exposures WHERE (exposuredetailsknown IS NULL OR exposuredetailsknown != 'YES') AND exposures.epidata_id = epidata.id;
58815881

58825882
UPDATE epidata SET changedate = now();
58835883

0 commit comments

Comments
 (0)