Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / file / migration_templates / d6_file.yml
1 # Every migration that references a file by Drupal 6 fid should specify this
2 # migration as an optional dependency.
3 id: d6_file
4 label: Files
5 migration_tags:
6   - Drupal 6
7 source:
8   plugin: d6_file
9   constants:
10     # The tool configuring this migration must set source_base_path. It
11     # represents the fully qualified path relative to which URIs in the files
12     # table are specified, and must end with a /. See source_full_path
13     # configuration in this migration's process pipeline as an example.
14     source_base_path: ''
15 process:
16     # If you are using both this migration and d6_user_picture_file in a custom
17     # migration and executing migrations incrementally, it is strongly
18     # recommended that you remove the fid mapping to avoid potential ID
19     # conflicts. For that reason, this mapping is commented out by default.
20     # fid: fid
21   filename: filename
22   source_full_path:
23     -
24       plugin: concat
25       delimiter: /
26       source:
27         - constants/source_base_path
28         - filepath
29     -
30       plugin: urlencode
31   destination_full_path:
32     plugin: file_uri
33     source:
34       - filepath
35       - file_directory_path
36       - temp_directory_path
37       - is_public
38   uri:
39     plugin: file_copy
40     source:
41       - '@source_full_path'
42       - '@destination_full_path'
43   filemime: filemime
44   # No need to migrate filesize, it is computed when file entities are saved.
45   # filesize: filesize
46   status: status
47   changed: timestamp
48   uid: uid
49 destination:
50   plugin: entity:file