]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Disable model activation during model migration 26/1326/1
authorMarko Luukkainen <marko.luukkainen@vtt.fi>
Mon, 18 Dec 2017 09:09:11 +0000 (11:09 +0200)
committerMarko Luukkainen <marko.luukkainen@vtt.fi>
Mon, 18 Dec 2017 09:09:11 +0000 (11:09 +0200)
refs #7686

Change-Id: Ide98ff661dba6b863923ebe4ca795bf03d77a2e1

bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/migration/MigrationUtils.java

index 36671d18b457bc48c21b0f65b16b504b31558417..58197619a7a25f8c002ac6460e166ff299b1919d 100644 (file)
@@ -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));