Chris@0: id: d6_comment Chris@0: label: Comments Chris@0: audit: true Chris@0: migration_tags: Chris@0: - Drupal 6 Chris@0: - Content Chris@0: source: Chris@0: plugin: d6_comment Chris@0: constants: Chris@0: entity_type: node Chris@0: process: Chris@0: # If you are using this file to build a custom migration consider removing Chris@0: # the cid field to allow incremental migrations. Chris@0: cid: cid Chris@0: pid: Chris@0: plugin: migration_lookup Chris@0: migration: d6_comment Chris@0: source: pid Chris@0: entity_id: nid Chris@0: entity_type: 'constants/entity_type' Chris@0: comment_type: Chris@0: - Chris@0: plugin: migration_lookup Chris@0: source: type Chris@0: migration: d6_comment_type Chris@0: - Chris@0: plugin: skip_on_empty Chris@0: method: row Chris@0: field_name: '@comment_type' Chris@0: subject: subject Chris@0: uid: uid Chris@0: name: name Chris@0: mail: mail Chris@0: homepage: homepage Chris@0: hostname: hostname Chris@0: created: timestamp Chris@0: changed: timestamp Chris@0: status: status #In D6, published=0. We reverse the value in prepareRow. Chris@0: thread: thread Chris@0: 'comment_body/value': comment Chris@0: 'comment_body/format': Chris@0: plugin: migration_lookup Chris@0: migration: d6_filter_format Chris@0: source: format Chris@0: destination: Chris@0: plugin: entity:comment Chris@0: migration_dependencies: Chris@0: required: Chris@0: - d6_node Chris@0: - d6_comment_type Chris@0: - d6_comment_entity_display Chris@0: - d6_comment_entity_form_display Chris@0: - d6_user Chris@0: - d6_filter_format