- Issue created by @sandip27
- ๐ณ๐ฟNew Zealand xurizaemon ลtepoti, Aotearoa ๐
Since it's not mentioned, there's existing work on migration in issue โจ Migration path for domain Needs review . This issue might be a duplicate of that?
9.5.9
8.x-1.0-beta8
[What did you try to do? What URL did you use to do it?]
I am in middle of Migration from D7 to D9. My Node YAML file looks like :
id: my7_article_node
label: Nodes
audit: true
migration_tags:
- Drupal 7
- Content
#deriver: Drupal\node\Plugin\migrate\D7NodeDeriver
source:
plugin: d7_node
# Define which Content Type, nodes to be migrated From.
node_type: article
process:
# If you are using this file to build a custom migration consider removing
# the nid and vid fields to allow incremental migrations.
# In D7, nodes always have a tnid, but it's zero for untranslated nodes.
# We normalize it to equal the nid in that case.
# @see \Drupal\node\Plugin\migrate\source\d7\Node::prepareRow().
nid: tnid
vid: vid
langcode:
plugin: default_value
source: language
default_value: "und"
title: title
body: body
field_domain_access: domain
uid: node_uid
status: status
created: created
changed: changed
promote: promote
sticky: sticky
revision_uid: revision_uid
revision_log: log
revision_timestamp: timestamp
destination:
plugin: entity:node
# Define which Content Type, nodes to be migrated To.
default_bundle: article
migration_dependencies:
required:
- my7_user
- d7_domain
# - my7_node_type
optional:
- my7_field_instance
- my7_comment_field_instance
Here, I have enabled the domain access for my nodes and I have total 8 domain out of which user can select any number of domains to assign to the node.
All the fields of nodes are getting migrated which I have manually added into the content type except the domain access.
The command I use to migrate the nodes are :
$ drush mim my7_article_node
[What actually happened?]
The Nodes gets migrated but domain doesn't get assigned to the migrated nodes.
[A bullet list of steps to reproduce the error. Note if the error always happens or sometimes happens.]
Active
Code
Since it's not mentioned, there's existing work on migration in issue โจ Migration path for domain Needs review . This issue might be a duplicate of that?