You are here

d7_file.yml in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/file/migration_templates/d7_file.yml
core/modules/file/migration_templates/d7_file.yml

File

core/modules/file/migration_templates/d7_file.yml
View source
  1. # Every migration that references a file by fid should specify this migration
  2. # as an optional dependency.
  3. id: d7_file
  4. label: Files
  5. migration_tags:
  6. - Drupal 7
  7. source:
  8. plugin: d7_file
  9. process:
  10. fid: fid
  11. filename: filename
  12. uri: uri
  13. filemime: filemime
  14. # filesize is dynamically computed when file entities are saved, so there is
  15. # no point in migrating it.
  16. # filesize: filesize
  17. status: status
  18. # Drupal 7 didn't keep track of the file's creation or update time -- all it
  19. # had was the vague "timestamp" column. So we'll use it for both.
  20. created: timestamp
  21. changed: timestamp
  22. uid: uid
  23. destination:
  24. plugin: entity:file
  25. source_path_property: filepath
  26. urlencode: true