Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[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:
20     -
21       plugin: migration_lookup
22       migration:
23         - d6_node
24         - d6_node_translation
25       source: nid
26     -
27       plugin: skip_on_empty
28       method: row
29   entity_type: 'constants/entity_type'
30   comment_type:
31     -
32       plugin: migration_lookup
33       source: type
34       migration: d6_comment_type
35     -
36       plugin: skip_on_empty
37       method: row
38   langcode: language
39   field_name: '@comment_type'
40   subject: subject
41   uid: uid
42   name: name
43   mail: mail
44   homepage: homepage
45   hostname: hostname
46   created: timestamp
47   changed: timestamp
48   status: status #In D6, published=0. We reverse the value in prepareRow.
49   thread: thread
50   'comment_body/value': comment
51   'comment_body/format':
52     plugin: migration_lookup
53     migration: d6_filter_format
54     source: format
55 destination:
56   plugin: entity:comment
57 migration_dependencies:
58   required:
59     - d6_node
60     - d6_comment_type
61     - d6_comment_entity_display
62     - d6_comment_entity_form_display
63     - d6_user
64     - d6_filter_format
65   optional:
66     - d6_node_translation