From d2b22a33ad7603106bb2d5dcff88c0203e5476ee Mon Sep 17 00:00:00 2001 From: Manuel Silva Date: Wed, 20 Nov 2024 14:11:26 +0100 Subject: [PATCH] Update update-tracked-entity-attribute-values-in-legacy-data.sql Make sure we omit the events that have been deleted --- .../update-tracked-entity-attribute-values-in-legacy-data.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/update-tracked-entity-attribute-values-in-legacy-data.sql b/scripts/update-tracked-entity-attribute-values-in-legacy-data.sql index 52b4bdc..4a24ed6 100644 --- a/scripts/update-tracked-entity-attribute-values-in-legacy-data.sql +++ b/scripts/update-tracked-entity-attribute-values-in-legacy-data.sql @@ -20,6 +20,7 @@ BEGIN FROM programstageinstance AS psi WHERE + psi.deleted = false AND psi.programinstanceid IN ( SELECT pi.programinstanceid