X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=web%2Fcore%2Fmodules%2Fuser%2Fmigration_templates%2Fd6_user_picture_file.yml;fp=web%2Fcore%2Fmodules%2Fuser%2Fmigration_templates%2Fd6_user_picture_file.yml;h=3518d7a6e3b34e8d1d710cb294144eefcdc47e94;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/core/modules/user/migration_templates/d6_user_picture_file.yml b/web/core/modules/user/migration_templates/d6_user_picture_file.yml new file mode 100644 index 000000000..3518d7a6e --- /dev/null +++ b/web/core/modules/user/migration_templates/d6_user_picture_file.yml @@ -0,0 +1,43 @@ +id: d6_user_picture_file +label: User pictures +migration_tags: + - Drupal 6 +source: + plugin: d6_user_picture_file + constants: + is_public: true + # source_base_path must be set by the tool configuring this migration. It + # represents the fully qualified path relative to which URIs in the files + # table are specified, and must end with a /. + source_base_path: '' +process: + filename: filename + uid: uid + source_full_path: + - + plugin: concat + delimiter: / + source: + - constants/source_base_path + - picture + - + plugin: urlencode + destination_full_path: + plugin: file_uri + source: + - picture + - file_directory_path + - temp_directory_path + - 'constants/is_public' + uri: + plugin: file_copy + source: + - '@source_full_path' + - '@destination_full_path' +destination: + plugin: entity:file +migration_dependencies: + # Every migration that references a file by Drupal 6 fid should specify d6_file as an + # optional dependency. + optional: + - d6_file