Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / file / migration_templates / d7_file.yml
1 # Every migration that references a file by Drupal 7 fid should specify this
2 # migration as an optional dependency.
3 id: d7_file
4 label: Files
5 migration_tags:
6   - Drupal 7
7 source:
8   plugin: d7_file
9   scheme: public
10   constants:
11     # The tool configuring this migration must set source_base_path. It
12     # represents the fully qualified path relative to which URIs in the files
13     # table are specified, and must end with a /. See source_full_path
14     # configuration in this migration's process pipeline as an example.
15     source_base_path: ''
16 process:
17   # If you are using this file to build a custom migration consider removing
18   # the fid field to allow incremental migrations.
19   fid: fid
20   filename: filename
21   source_full_path:
22     -
23       plugin: concat
24       delimiter: /
25       source:
26         - constants/source_base_path
27         - filepath
28     -
29       plugin: urlencode
30   uri:
31     plugin: file_copy
32     source:
33       - '@source_full_path'
34       - uri
35   filemime: filemime
36   # No need to migrate filesize, it is computed when file entities are saved.
37   # filesize: filesize
38   status: status
39   # Drupal 7 didn't keep track of the file's creation or update time -- all it
40   # had was the vague "timestamp" column. So we'll use it for both.
41   created: timestamp
42   changed: timestamp
43   uid: uid
44 destination:
45   plugin: entity:file