mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-01-12 15:14:35 +00:00
Add upgrade_d7_file content migration
Copied from ref_migrations folder
This commit is contained in:
parent
68c9c5bb74
commit
3d77a74576
1 changed files with 67 additions and 0 deletions
|
@ -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: { }
|
Loading…
Reference in a new issue