migrate user customer profil
This commit is contained in:
@@ -8,12 +8,9 @@ migration_tags:
|
||||
- Materio
|
||||
|
||||
source:
|
||||
plugin: d7_user_profile
|
||||
plugin: d7_user_profile_customer
|
||||
batch_size: 1000
|
||||
high_water_property:
|
||||
name: changed
|
||||
alias: p
|
||||
|
||||
|
||||
destination:
|
||||
plugin: entity:profile
|
||||
|
||||
@@ -21,51 +18,68 @@ process:
|
||||
# id: pid
|
||||
# label: label
|
||||
|
||||
type:
|
||||
-
|
||||
plugin: skip_on_value
|
||||
equals: true
|
||||
source: type
|
||||
method: row
|
||||
value:
|
||||
- contact_operationnel
|
||||
-
|
||||
plugin: static_map
|
||||
source: type
|
||||
map:
|
||||
adherent: customer
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: customer
|
||||
# -
|
||||
# plugin: skip_on_value
|
||||
# equals: true
|
||||
# source: type
|
||||
# method: row
|
||||
# value:
|
||||
# - contact_operationnel
|
||||
# -
|
||||
# plugin: static_map
|
||||
# source: type
|
||||
# map:
|
||||
# adherent: customer
|
||||
|
||||
uid:
|
||||
plugin: migration_lookup
|
||||
migration: d7_users
|
||||
source: uid
|
||||
|
||||
phone: field_private_phone
|
||||
phone: billing_phone
|
||||
|
||||
address:
|
||||
plugin: iterator
|
||||
source: field_adresse
|
||||
process:
|
||||
# langcode:
|
||||
country_code: country
|
||||
administrative_area: administrative_area
|
||||
locality: locality
|
||||
dependent_locality: dependent_locality
|
||||
postal_code: postal_code
|
||||
# sorting_code:
|
||||
address_line1: thoroughfare
|
||||
# address_line2:
|
||||
organization: organisation_name
|
||||
given_name: first_name
|
||||
# additional_name:
|
||||
family_name: last_name
|
||||
|
||||
# SOURCES
|
||||
# sub_administrative_area
|
||||
# premise
|
||||
# sub_premise
|
||||
# name_line
|
||||
# data
|
||||
|
||||
address/country_code: billing_country
|
||||
address/administrative_area: billing_zone
|
||||
address/locality: billing_city
|
||||
# address/dependent_locality: dependent_locality
|
||||
address/postal_code: billing_postal_code
|
||||
# address/sorting_code:
|
||||
address/address_line1: billing_street1
|
||||
address/address_line2: billing_street2
|
||||
address/organization: billing_company
|
||||
address/given_name: billing_first_name
|
||||
# address/additional_name:
|
||||
address/family_name: billing_last_name
|
||||
|
||||
# address:
|
||||
# plugin: iterator
|
||||
# source: field_adresse
|
||||
# process:
|
||||
# # langcode:
|
||||
# country_code: country
|
||||
# administrative_area: administrative_area
|
||||
# locality: locality
|
||||
# dependent_locality: dependent_locality
|
||||
# postal_code: postal_code
|
||||
# # sorting_code:
|
||||
# address_line1: thoroughfare
|
||||
# # address_line2:
|
||||
# organization: organisation_name
|
||||
# given_name: first_name
|
||||
# # additional_name:
|
||||
# family_name: last_name
|
||||
|
||||
# # SOURCES
|
||||
# # sub_administrative_area
|
||||
# # premise
|
||||
# # sub_premise
|
||||
# # name_line
|
||||
# # data
|
||||
|
||||
# body:
|
||||
# plugin: iterator
|
||||
|
Reference in New Issue
Block a user