Untitled

mail@pastecode.io avatar
unknown
plain_text
9 days ago
646 B
2
Indexable
Never
id: wordpress_files
label: 'WordPress Files Migration'
migration_group: default
source:
  plugin: xyz_wordpress_media
  key: wordpress
  table_prefix: wp_
  track_changes: TRUE
process:
  fid:
    plugin: skip_on_empty
    source: ID
  file_uri:
    plugin: file_copy
    source: guid
    destination: 'public://migrated-wordpress-files/'
  filemime:
    plugin: get
    source: post_mime_type
  uid:
    plugin: default_value
    default_value: 1
  status:
    plugin: default_value
    default_value: 1
  filename:
    plugin: get
    source: post_title
destination:
  plugin: 'entity:file'
migration_dependencies:
  required: {}
  optional: {}
Leave a Comment