1

I created a migrate script to import hundreds of records into a specific content type. A year after, I need to add another field to the content type and import values specific to each record. Because of changes made to some of the records over the past year, I cannot re-import the content from the csv file with the additional column. I am using config-edit to edit the migrate .yml file. Is there a way to rerun the migration to import content for the new field while ignoring all other fields that already have content.

I am using Drupal 8.

Thanks,

2 Answers 2

1

Try creating a new import *.yml template(s) where - in the main

process: 

section, include only the field that was recently added/changed. My (wild) guess is that the existing fields will be left intact.

1

I was able to make it work by doing a vigorous edit of the original migrate script, removing all the fields and their mappings, except for the key. Adding the new field, allowed me to rerun the migrate script and the new field was imported while leaving the other content intact. I am still able to use the rollback and other functions of the script.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.