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