Add migrations for Drupal 7 ECK to Drupal 8/9

Created on 9 October 2016, about 8 years ago
Updated 2 July 2023, over 1 year ago

Problem/Motivation

Currently, there is no support to migrate ECK entity types, bundles and ECK entities directly from Drupal 7 sites.

The following patch adds support to migrate entity types, bundles and entities.

To test:
- Install migrate_upgrade and migrate_tools module.
- Run drush migrate-upgrade --legacy-db-url=mysql://drupaluser@127.0.0.1:3306/OLD_DB --legacy-root=http://oldsite.com --verbose --configure-only
- You should have new migrations ready to run upgrade_d7_eck_types, upgrade_d7_eck_bundles and one migration per bundle

Proposed resolution

Do it!

Remaining tasks



Review
Manual testing -
Commit

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇵🇹Portugal hernani

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇨🇾Cyprus alex.bukach

    When I run `drush migrate:upgrage --configure-only`, the migrations for entities (`d7_eck`) are not created. Is it expected, should they be created manually? (The migration for the entity types and bundles are created as expected.)

  • 🇬🇧United Kingdom emileacroweb

    Just echoing the above from @Alex. Migrating from Drupal 7 to 9, it seems that the types and bundle configurations migrate correctly but the actual entities themselves are not having migrations generated.

    If I understand correctly, there should be the following migrations:
    upgrade_d7_eck_type
    upgrade_d7_eck_bundle

    then there should be a migration per bundle (for all of the actual entities themselves.)

    I think that these further migrations are the derived, follow up migrations but it does not look like they are being generated.

    I'm wondering if I'm missing a step somewhere? Can anyone shed any light?

  • 🇨🇾Cyprus alex.bukach

    @emileacroweb I have found that all Follow-up migrations are skipped by \Drupal\migrate_drupal\MigrationConfigurationTrait::getMigrations() which is used to build a list of migrations to generate. I have commented out the check in in to generate the ECK (and other follow-up) migrations.

Production build 0.71.5 2024