From c3bca638bcdba8125e89b335ba1680ec639953ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominique=20Eifl=C3=A4nder?= Date: Mon, 11 Mar 2024 14:11:09 +0100 Subject: [PATCH] RED-8712: Fixed sql statement --- .../206-remove-manual-redactions-on-non-existing-pages.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/persistence-service-v1/persistence-service-processor-v1/src/main/resources/db/changelog/tenant/sql/206-remove-manual-redactions-on-non-existing-pages.sql b/persistence-service-v1/persistence-service-processor-v1/src/main/resources/db/changelog/tenant/sql/206-remove-manual-redactions-on-non-existing-pages.sql index 77af61e9a..ebe158fba 100644 --- a/persistence-service-v1/persistence-service-processor-v1/src/main/resources/db/changelog/tenant/sql/206-remove-manual-redactions-on-non-existing-pages.sql +++ b/persistence-service-v1/persistence-service-processor-v1/src/main/resources/db/changelog/tenant/sql/206-remove-manual-redactions-on-non-existing-pages.sql @@ -1,7 +1,7 @@ Delete -from redaction.manual_redaction +from manual_redaction where concat(annotation_id, file_id) in (SELECT concat(manual_redaction_entry_entity_annotation_id, id) - from redaction.file file - JOIN redaction.manual_redaction_entry_entity_positions pos + from file file + JOIN manual_redaction_entry_entity_positions pos ON file.id = pos.manual_redaction_entry_entity_file_id where file.number_of_pages < pos.page); \ No newline at end of file -- 2.47.2