2016-08-31 14:24:18 +00:00
|
|
|
# Every migration that references a file by Drupal 7 fid should specify this
|
|
|
|
# migration as an optional dependency.
|
2015-08-05 22:40:00 +00:00
|
|
|
id: d7_file
|
2017-10-18 15:40:19 +00:00
|
|
|
label: Public files
|
Issue #2876085 by heddn, maxocub, phenaproxima, Jo Fitzgerald, vasi, quietone, yoroy, masipila, larowlan, neclimdul, krystalcode, catch: Before upgrading, audit for potential ID conflicts
2017-12-15 22:36:36 +00:00
|
|
|
audit: true
|
2015-08-05 22:40:00 +00:00
|
|
|
migration_tags:
|
|
|
|
- Drupal 7
|
Issue #2711099 by heddn, Jo Fitzgerald, edysmp, edgewl2, alexpott, Charlotte17, mikeryan, masipila, quietone, maxocub, phenaproxima: Categorize migrations according to their type
2018-02-15 06:27:23 +00:00
|
|
|
- Content
|
2015-08-05 22:40:00 +00:00
|
|
|
source:
|
|
|
|
plugin: d7_file
|
2017-06-28 10:46:57 +00:00
|
|
|
scheme: public
|
2016-08-31 14:24:18 +00:00
|
|
|
constants:
|
2017-04-06 18:07:33 +00:00
|
|
|
# The tool configuring this migration must set source_base_path. It
|
|
|
|
# represents the fully qualified path relative to which URIs in the files
|
2016-08-31 14:24:18 +00:00
|
|
|
# table are specified, and must end with a /. See source_full_path
|
|
|
|
# configuration in this migration's process pipeline as an example.
|
|
|
|
source_base_path: ''
|
2015-08-05 22:40:00 +00:00
|
|
|
process:
|
2016-11-03 15:13:40 +00:00
|
|
|
# If you are using this file to build a custom migration consider removing
|
|
|
|
# the fid field to allow incremental migrations.
|
2015-08-05 22:40:00 +00:00
|
|
|
fid: fid
|
|
|
|
filename: filename
|
2016-08-31 14:24:18 +00:00
|
|
|
source_full_path:
|
|
|
|
-
|
|
|
|
plugin: concat
|
|
|
|
delimiter: /
|
|
|
|
source:
|
|
|
|
- constants/source_base_path
|
|
|
|
- filepath
|
|
|
|
-
|
|
|
|
plugin: urlencode
|
|
|
|
uri:
|
|
|
|
plugin: file_copy
|
|
|
|
source:
|
|
|
|
- '@source_full_path'
|
|
|
|
- uri
|
2015-08-05 22:40:00 +00:00
|
|
|
filemime: filemime
|
2017-04-06 18:07:33 +00:00
|
|
|
# No need to migrate filesize, it is computed when file entities are saved.
|
2015-08-05 22:40:00 +00:00
|
|
|
# filesize: filesize
|
|
|
|
status: status
|
|
|
|
# Drupal 7 didn't keep track of the file's creation or update time -- all it
|
|
|
|
# had was the vague "timestamp" column. So we'll use it for both.
|
|
|
|
created: timestamp
|
|
|
|
changed: timestamp
|
|
|
|
uid: uid
|
|
|
|
destination:
|
|
|
|
plugin: entity:file
|