geo-coop/web/modules/custom/geo_upgrade/migrations/upgrade_d7_file.yml
2019-07-17 14:47:01 -05:00

61 lines
992 B
YAML

id: upgrade_d7_file
langcode: en
migration_group: migrate_drupal_7_geo
migration_tags:
- 'Drupal 7'
- Content
label: 'Geo Public files'
source:
plugin: d7_file
scheme: public
constants:
source_base_path: '/var/www/html/d7/'
process:
fid:
-
plugin: get
source: fid
filename:
-
plugin: get
source: filename
source_full_path:
-
plugin: concat
delimiter: /
source:
- constants/source_base_path
- filepath
-
plugin: urlencode
uri:
-
plugin: file_copy
source:
- '@source_full_path'
- uri
filemime:
-
plugin: get
source: filemime
status:
-
plugin: get
source: status
created:
-
plugin: get
source: timestamp
changed:
-
plugin: get
source: timestamp
uid:
-
plugin: get
source: uid
destination:
plugin: 'entity:file'
migration_dependencies:
required: { }
optional: { }