Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating old cr data with additional root nodes and their children #4895

Open
ahaeslich opened this issue Feb 16, 2024 · 0 comments
Open

Migrating old cr data with additional root nodes and their children #4895

ahaeslich opened this issue Feb 16, 2024 · 0 comments

Comments

@ahaeslich
Copy link
Member

Migrating Neos 8 content to Neos 9 will, as of now, migrate all nodes residing below the sites root node. Nodes residing below other root nodes, like e.g. taxonomies, won't be migrated into the new CR.

foreach ($this->nodeDataRows as $nodeDataRow) {
if ($nodeDataRow['path'] === '/sites') {
$sitesNodeAggregateId = NodeAggregateId::fromString($nodeDataRow['identifier']);
$this->visitedNodes->addRootNode($sitesNodeAggregateId, $this->sitesNodeTypeName, NodePath::fromString('/sites'), $this->interDimensionalVariationGraph->getDimensionSpacePoints());
$this->exportEvent(new RootNodeAggregateWithNodeWasCreated($this->contentStreamId, $sitesNodeAggregateId, $this->sitesNodeTypeName, $this->interDimensionalVariationGraph->getDimensionSpacePoints(), NodeAggregateClassification::CLASSIFICATION_ROOT));
continue;
}
if ($this->metaDataExported === false && $nodeDataRow['parentpath'] === '/sites') {
$this->exportMetaData($nodeDataRow);
$this->metaDataExported = true;
}
try {
$this->processNodeData($nodeDataRow);
} catch (MigrationException $exception) {
return ProcessorResult::error($exception->getMessage());
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant