Skip to content

Commit

Permalink
Remove id mapping and add start and end date mapping to timeline item…
Browse files Browse the repository at this point in the history
… migration

Ref #459
  • Loading branch information
Keegan Rankin committed Aug 1, 2024
1 parent cc9874d commit 77e050f
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,26 @@ source:
entity_type: pece_timeline_essay_item
bundle: pece_timeline_essay_item
process:
id: id
field_title: title
field_description: field_description
field_pece_timeline_artifact: field_pece_timeline_artifact
field_pece_timeline_background: field_pece_timeline_background
field_pece_timeline_color: field_pece_timeline_color
field_pece_timeline_type: field_pece_timeline_type
field_pece_start_end_date:
plugin: sub_process
source: field_pece_start_end_date
process:
value:
plugin: format_date
from_format: 'Y-m-d H:i:s'
to_format: Y-m-d
source: value
end_value:
plugin: format_date
from_format: 'Y-m-d H:i:s'
to_format: Y-m-d
source: value2
destination:
plugin: 'entity_reference_revisions:paragraph'
default_bundle: pece_timeline_essay_item
Expand Down

0 comments on commit 77e050f

Please sign in to comment.