migrate.migration.d6_file.yml 582 Bytes
Newer Older
1 2
# Every migration that saves into {file_managed} must have the d6_file
# migration as an optional dependency to ensure d6_file runs first.
3 4
id: d6_file
label: Drupal 6 files
5
migration_tags:
6
  - Drupal 6
7 8 9 10 11 12 13 14 15 16
source:
  plugin: d6_file
process:
  fid: fid
  filename: filename
  uri:
    plugin: file_uri
    source:
      - filepath
      - file_directory_path
17
      - temp_directory_path
18 19 20 21 22
      - is_public
  filemime: filemime
  filesize: filesize
  status: status
  changed: timestamp
23
  uid: uid
24 25
destination:
  plugin: entity:file
26 27 28 29
dependencies:
  module:
    - file
    - migrate_drupal