diff --git a/drupal10/web/modules/custom/tag1_migration/migrations/upgrade_d7_file.yml b/drupal10/web/modules/custom/tag1_migration/migrations/upgrade_d7_file.yml new file mode 100644 index 0000000..642b7af --- /dev/null +++ b/drupal10/web/modules/custom/tag1_migration/migrations/upgrade_d7_file.yml @@ -0,0 +1,67 @@ +uuid: bb7a5391-aef1-45a5-8c08-248c09f56193 +langcode: en +status: true +dependencies: { } +id: upgrade_d7_file +class: Drupal\migrate\Plugin\Migration +field_plugin_method: null +cck_plugin_method: null +migration_tags: + - 'Drupal 7' + - Content +migration_group: migrate_drupal_7 +label: 'Public files' +source: + plugin: d7_file + scheme: public + constants: + source_base_path: 'http://ddev-migration-drupal7-web/' +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: { }