X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Ffile%2Fmigration_templates%2Fd7_file_private.yml;fp=web%2Fcore%2Fmodules%2Ffile%2Fmigration_templates%2Fd7_file_private.yml;h=9c6b8e233c47b1a21931b8b48b247a190b06056f;hb=bfbba508964731508b9bd6d5835c2edc858db95b;hp=0000000000000000000000000000000000000000;hpb=cb9a80db11fc6b014e5b1e693a5a391c95eb5d9a;p=yaffs-website diff --git a/web/core/modules/file/migration_templates/d7_file_private.yml b/web/core/modules/file/migration_templates/d7_file_private.yml new file mode 100644 index 000000000..9c6b8e233 --- /dev/null +++ b/web/core/modules/file/migration_templates/d7_file_private.yml @@ -0,0 +1,39 @@ +id: d7_file_private +label: Files +migration_tags: + - Drupal 7 +source: + plugin: d7_file + scheme: private + constants: + # 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 /. See source_full_path + # configuration in this migration's process pipeline as an example. + source_base_path: '' +process: + # If you are using this file to build a custom migration consider removing + # the fid field to allow incremental migrations. + fid: fid + filename: filename + source_full_path: + - + plugin: concat + delimiter: / + source: + - constants/source_base_path + - filepath + uri: + plugin: file_copy + source: + - '@source_full_path' + - uri + filemime: filemime + status: status + # Drupal 7 didn't keep track of the file's creation or update time -- all it + # had was the vague "timestamp" column. So we'll use it for both. + created: timestamp + changed: timestamp + uid: uid +destination: + plugin: entity:file