From: Marko Luukkainen Date: Mon, 18 Dec 2017 09:09:11 +0000 (+0200) Subject: Disable model activation during model migration X-Git-Tag: v1.43.0~136^2~654 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=e92bb21b41012eb2795d15d1b9609dabb189cb40;p=simantics%2Fplatform.git Disable model activation during model migration refs #7686 Change-Id: Ide98ff661dba6b863923ebe4ca795bf03d77a2e1 --- 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));