drupal 9

Migrate existing Entity Reference field to Entity Reference Revisions field

Entity Reference and Entity Reference Revisions fields are very similar, but the latter offers more flexibility when it comes to reverting to a previous revision in the case when you have a nested entity. Let's see the easiest way to migrate an existing Entity Reference field to an Entity Reference Revisions field.