popsu_migrate: Created D7NodeProjet, D7NodeTheme themes et projets liés ok
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
id: d7_node_projet
|
||||
label: Node Projet
|
||||
migration_group: popsu
|
||||
audit: true
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Content
|
||||
- Popsu
|
||||
|
||||
source:
|
||||
plugin: d7_node_projet
|
||||
batch_size: 500
|
||||
high_water_property:
|
||||
name: changed
|
||||
alias: n
|
||||
|
||||
destination:
|
||||
plugin: entity:node
|
||||
|
||||
process:
|
||||
# nid: nid
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: projet
|
||||
created: created
|
||||
changed: changed
|
||||
|
||||
uid:
|
||||
plugin: default_value
|
||||
default_value: 34
|
||||
|
||||
title: title
|
||||
|
||||
# field_programme:
|
||||
# plugin: migration_lookup
|
||||
# migration: d7_node_programme
|
||||
# source: programme
|
||||
# no_stub: true
|
||||
|
||||
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d7_allpublicfiles
|
||||
- d7_users
|
||||
- d7_taxonomy_term_type_theme
|
@@ -56,8 +56,22 @@ process:
|
||||
source: field_popsu_themtrans_type
|
||||
no_stub: true
|
||||
|
||||
field_themes_lies:
|
||||
plugin: sub_process
|
||||
source: field_themes_lies
|
||||
process:
|
||||
target_id:
|
||||
plugin: migration_lookup
|
||||
migration:
|
||||
- d7_node_projet
|
||||
- d7_node_theme
|
||||
source: nid
|
||||
# stub_id is not working :(
|
||||
stub_id: d7_node_projet
|
||||
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d7_allpublicfiles
|
||||
- d7_users
|
||||
- d7_taxonomy_term_type_theme
|
||||
- d7_node_projet
|
||||
|
Reference in New Issue
Block a user