Migration path for domain

Created on 31 May 2017, over 7 years ago
Updated 13 October 2023, about 1 year ago

Hi, Is it possible to create a migration path from Drupal 7 to Drupal 8.
Currently, while migrating the content on multi site created using domain access module,
content is not getting attached with domain. i.e. domains are not migrating as migration path is missing.

Regards
Sunil

Feature request
Status

Needs review

Version

1.0

Component

Code

Created by

🇮🇳India Sunil S. Bangalore

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.

  • 🇮🇳India sandip27

    During migration, I tried the patch provided by @unkelhoebbi at #17. When I used this patch with my custom code migrations in "custom_module/migrations" folder it worked. However when I applied the same patch and used it for "configuration entities" generated in my "custom_module/config/install" folder, it didn't work. The Nodes are no more attached to the Domains I had assigned in D7 version of site.

    No matter whether I use d7_node_domain_access or d7_node_complete, it still doesn't connects the nodes to domains in migrated database.
    More details can be found at : https://drupal.slack.com/archives/C226VLXBP/p1693222680688409

    Any suggestions ?

  • First commit to issue fork.
  • Open on Drupal.org →
    Core: 9.5.x + Environment: PHP 8.1 & MySQL 5.7
    last update about 1 year ago
    Not currently mergeable.
  • @rodrigoaguilera opened merge request.
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update about 1 year ago
    93 pass
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update about 1 year ago
    93 pass
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 5.7
    last update about 1 year ago
    93 pass
  • Status changed to Needs review about 1 year ago
  • 🇪🇸Spain rodrigoaguilera Barcelona

    Opened a MR and added three lines that avoid a warning when there is no source domain set

    https://git.drupalcode.org/project/domain/-/merge_requests/51/diffs#03fe...

    The code works for me migrating nodes. Given the support left for D7 I wouldn't bother adding any tests, that why I set it back to needs review

  • 🇳🇿New Zealand davidwhthomas

    Just noting I used this patch #51 to successfully migrate node domain data into Drupal 10:

    I added this to the migration yaml:

    id: custom_d7_node_domain_access
    # Other migration yaml then
    source:
      # Needs this plugin
      plugin: d7_node_domain_access
      # Example node type
      node_type: article
    process:
      # Other node fields then domain fields
      field_domain_access:
          -
            plugin: sub_process
            source: domain_access_node
            process:
              target_id: target_id
      field_domain_all_affiliates:
          -
            plugin: get
            source: domain_all_affiliates
      field_domain_source:
          -
            plugin: get
            source: domain_source

    and ran the migration with drush:

    drush migrate:import custom_d7_node_domain_access

Production build 0.71.5 2024