161820eeaacb9cf57c426ccf60a522c77a76be20
[yaffs-website] / web / core / modules / comment / migration_templates / d6_comment.yml
1 id: d6_comment
2 label: Comments
3 migration_tags:
4   - Drupal 6
5 source:
6   plugin: d6_comment
7   constants:
8     entity_type: node
9 process:
10   # If you are using this file to build a custom migration consider removing
11   # the cid field to allow incremental migrations.
12   cid: cid
13   pid:
14     plugin: migration_lookup
15     migration: d6_comment
16     source: pid
17   entity_id: nid
18   entity_type: 'constants/entity_type'
19   comment_type:
20     -
21       plugin: migration_lookup
22       source: type
23       migration: d6_comment_type
24     -
25       plugin: skip_on_empty
26       method: row
27   field_name: '@comment_type'
28   subject: subject
29   uid: uid
30   name: name
31   mail: mail
32   homepage: homepage
33   hostname: hostname
34   created: timestamp
35   changed: timestamp
36   status: status #In D6, published=0. We reverse the value in prepareRow.
37   thread: thread
38   'comment_body/value': comment
39   'comment_body/format':
40     plugin: migration_lookup
41     migration: d6_filter_format
42     source: format
43 destination:
44   plugin: entity:comment
45 migration_dependencies:
46   required:
47     - d6_node
48     - d6_comment_type
49     - d6_comment_entity_display
50     - d6_comment_entity_form_display
51     - d6_user
52     - d6_filter_format