annotate core/modules/comment/migrations/d6_comment.yml @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children a9cd425dd02b
rev   line source
Chris@0 1 id: d6_comment
Chris@0 2 label: Comments
Chris@0 3 audit: true
Chris@0 4 migration_tags:
Chris@0 5 - Drupal 6
Chris@0 6 - Content
Chris@0 7 source:
Chris@0 8 plugin: d6_comment
Chris@0 9 constants:
Chris@0 10 entity_type: node
Chris@0 11 process:
Chris@0 12 # If you are using this file to build a custom migration consider removing
Chris@0 13 # the cid field to allow incremental migrations.
Chris@0 14 cid: cid
Chris@0 15 pid:
Chris@0 16 plugin: migration_lookup
Chris@0 17 migration: d6_comment
Chris@0 18 source: pid
Chris@0 19 entity_id: nid
Chris@0 20 entity_type: 'constants/entity_type'
Chris@0 21 comment_type:
Chris@0 22 -
Chris@0 23 plugin: migration_lookup
Chris@0 24 source: type
Chris@0 25 migration: d6_comment_type
Chris@0 26 -
Chris@0 27 plugin: skip_on_empty
Chris@0 28 method: row
Chris@0 29 field_name: '@comment_type'
Chris@0 30 subject: subject
Chris@0 31 uid: uid
Chris@0 32 name: name
Chris@0 33 mail: mail
Chris@0 34 homepage: homepage
Chris@0 35 hostname: hostname
Chris@0 36 created: timestamp
Chris@0 37 changed: timestamp
Chris@0 38 status: status #In D6, published=0. We reverse the value in prepareRow.
Chris@0 39 thread: thread
Chris@0 40 'comment_body/value': comment
Chris@0 41 'comment_body/format':
Chris@0 42 plugin: migration_lookup
Chris@0 43 migration: d6_filter_format
Chris@0 44 source: format
Chris@0 45 destination:
Chris@0 46 plugin: entity:comment
Chris@0 47 migration_dependencies:
Chris@0 48 required:
Chris@0 49 - d6_node
Chris@0 50 - d6_comment_type
Chris@0 51 - d6_comment_entity_display
Chris@0 52 - d6_comment_entity_form_display
Chris@0 53 - d6_user
Chris@0 54 - d6_filter_format