8

I'm migrating contents from D7 to D8. I'm exporting nodes with services_views and importing with migrate.

I would like to import also revisions. How should I do? Revisions on D8 don't seem entities, so what kind of "target" should I use to import them?

1 Answer 1

5

The revisions are added to the existing entity. There is an EntityRevision destination in core.

See core/modules/node/migration_templates/d7_node_revision.yml here for an example of how you'd migrate revisions.

Note: translated node revisions are not yet supported, but you can look at a good starting point at #2746541.

2
  • For anyone arriving here, there's also a new(ish) 'complete' migration for nodes that takes revisions and translations into account: drupal.org/node/3105503 Commented Feb 15, 2024 at 2:18
  • Also, consider this 10.2 and 11.x change regarding entity revisions, drupal.org/node/3426397 Commented Mar 7, 2024 at 14:37

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.