From e92bb21b41012eb2795d15d1b9609dabb189cb40 Mon Sep 17 00:00:00 2001 From: Marko Luukkainen Date: Mon, 18 Dec 2017 11:09:11 +0200 Subject: [PATCH] Disable model activation during model migration refs #7686 Change-Id: Ide98ff661dba6b863923ebe4ca795bf03d77a2e1 --- .../src/org/simantics/db/layer0/migration/MigrationUtils.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/migration/MigrationUtils.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/migration/MigrationUtils.java index 36671d18b..58197619a 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/migration/MigrationUtils.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/migration/MigrationUtils.java @@ -143,7 +143,9 @@ public class MigrationUtils { graph.deny(root, L0.PartOf); graph.claim(root, L0.PartOf, parent); - activateIfNoActiveModel(graph, root, parent); + // FIXME : Model activation must be done in "activations" virtual graph. + // FIXME : This step should be optional, not all the products use active models. + //activateIfNoActiveModel(graph, root, parent); CommentMetadata cm = graph.getMetadata(CommentMetadata.class); graph.addMetadata(cm.add("Imported " + graph.getURI(root) + ", resource " + root)); -- 2.47.1