FC to paragraphs for Drupal 7 migration to Drupal 10

Created on 12 January 2024, 12 months ago

Problem/Motivation

Current field_collection_to_paragraphs version is for migrations inside Drupal 8. A lot of people (me included) are migrating directly from Drupal 7 to Drupal 9 or better to 10. There is no field_collection version compatible with Drupal 10, but there is no solution either to migrate field_collection to paragraphs. It would be nice if we had a way to migrate directly form field_collection D7 to paragraphs D10 without having to migrate first FC to D8, then migrate FC to paragraphs en finally migrate paragraphs from D8 to D10.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France erwangel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @erwangel
  • πŸ‡«πŸ‡·France erwangel

    You can close this issue. I've just seen that D10 Paragraphs has its own migration for D7 Field_collection, and it works. So no need of field_collection_to_paragraphs module.

    Just to say for others coming here that there are two migrations to execute with drush:
    - d7_field_collection_type and
    - d7_field_collection:name_of_your_field_collection_type
    In my case d7_field_collection_type didn't create the corresponding paragraph fields as I was expecting. They had to be created by hand with the same machine_name as in d7 field collection. So my migration process was the following:
    1) Import the nodes or entities containing the data related to the fields used in your field_collection_type
    2) drush migrate:import d7_field_collection_type
    3) Create manually the fields in the paragraph type as explained above
    4) drush migrate:import d7_field_collection:name_of_your_field_collection_type
    4) Import the entities using this paragraph type

  • Status changed to Fixed 12 months ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

  • Status changed to Closed: works as designed 9 months ago
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Thanks for reporting back.

  • πŸ‡ΊπŸ‡ΈUnited States mviojan

    Hello,

    In regards to the steps erwangel described on migration field collection into paragraphs, I can successfully migrate my field collection types into paragraphs as well as the data, but configuring so the new paragraph is a field on a content type is where I can't seem to get it to work.

    Any help would be appreciated. Thanks.

Production build 0.71.5 2024