From 2598e07a0fc41d3f6e178f9f2f1ebad886fcb33f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bla=C5=A1ko?= Date: Fri, 10 Jan 2025 09:31:09 +0100 Subject: [PATCH] [#248] Fix script to move data to rm:action-history --- ...n-history-from-default-to-separate-context.ru | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/deploy/shared/db-server/import/record-manager-formgen/migration/action-history-from-default-to-separate-context.ru b/deploy/shared/db-server/import/record-manager-formgen/migration/action-history-from-default-to-separate-context.ru index 4a840239..2c517d2f 100644 --- a/deploy/shared/db-server/import/record-manager-formgen/migration/action-history-from-default-to-separate-context.ru +++ b/deploy/shared/db-server/import/record-manager-formgen/migration/action-history-from-default-to-separate-context.ru @@ -1,9 +1,7 @@ PREFIX rm: -DELETE { - GRAPH { - ?a ?p ?o . - } +DELETE { + ?a ?p ?o . } INSERT { GRAPH rm:action-history { @@ -11,8 +9,12 @@ INSERT { } } WHERE { - GRAPH { - ?a ?p ?o . - ?a a rm:action-history . + ?a ?p ?o . + ?a a rm:action-history . + + MINUS { + GRAPH ?g { + ?a ?p ?o . + } } }