X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fcomment%2Fmigrations%2Fd7_comment.yml;fp=web%2Fcore%2Fmodules%2Fcomment%2Fmigrations%2Fd7_comment.yml;h=69c94ae520d9a3e2fda6a5752ab3581830e73570;hp=0000000000000000000000000000000000000000;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0 diff --git a/web/core/modules/comment/migrations/d7_comment.yml b/web/core/modules/comment/migrations/d7_comment.yml new file mode 100644 index 000000000..69c94ae52 --- /dev/null +++ b/web/core/modules/comment/migrations/d7_comment.yml @@ -0,0 +1,46 @@ +id: d7_comment +label: Comments +audit: true +migration_tags: + - Drupal 7 + - Content +source: + plugin: d7_comment + constants: + entity_type: node +process: + # If you are using this file to build a custom migration consider removing + # the cid field to allow incremental migrations. + cid: cid + pid: + plugin: migration_lookup + migration: d7_comment + source: pid + entity_id: nid + entity_type: 'constants/entity_type' + comment_type: + - + plugin: migration_lookup + source: node_type + migration: d7_comment_type + - + plugin: skip_on_empty + method: row + field_name: '@comment_type' + subject: subject + uid: uid + name: name + mail: mail + homepage: homepage + hostname: hostname + created: created + changed: changed + status: status + thread: thread + comment_body: comment_body +destination: + plugin: entity:comment +migration_dependencies: + required: + - d7_node + - d7_comment_type