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