user profiles migration almost done, + some updates
This commit is contained in:
@@ -7,6 +7,9 @@ audit: true
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Content
|
||||
- Materio
|
||||
- Files
|
||||
|
||||
source:
|
||||
plugin: d7_pubic_file
|
||||
scheme: public
|
||||
|
@@ -53,6 +53,10 @@ process:
|
||||
source: field_public_email
|
||||
process:
|
||||
value: email
|
||||
|
||||
# field_address:
|
||||
# plugin: addressfield
|
||||
# source: field_address
|
||||
field_public_address:
|
||||
plugin: iterator
|
||||
source: field_public_address
|
||||
|
@@ -0,0 +1,99 @@
|
||||
id: d7_user_profile
|
||||
label: D7 User Profiles
|
||||
migration_group: d7_materio
|
||||
audit: true
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Content
|
||||
- Materio
|
||||
|
||||
source:
|
||||
plugin: d7_user_profile
|
||||
high_water_property:
|
||||
name: changed
|
||||
alias: p
|
||||
|
||||
destination:
|
||||
plugin: entity:profile
|
||||
|
||||
process:
|
||||
# id: pid
|
||||
# label: label
|
||||
|
||||
type:
|
||||
plugin: static_map
|
||||
source: type
|
||||
map:
|
||||
contact_operationnel: contact_company
|
||||
adherent: member
|
||||
|
||||
uid:
|
||||
plugin: migration_lookup
|
||||
migration: d7_users
|
||||
source: uid
|
||||
|
||||
field_activity_sector: field_activity_sector
|
||||
field_employee: field_employee
|
||||
field_first_name: field_first_name
|
||||
field_name: field_name
|
||||
field_naf: field_naf
|
||||
field_organization: field_organization
|
||||
field_phone: field_private_phone
|
||||
field_position: field_private_quality
|
||||
field_service: field_service
|
||||
field_siret: field_siret
|
||||
field_title: field_private_name_title
|
||||
field_vat_number_intra_ce: field_vat_number_intra_ce
|
||||
field_website: field_user_website
|
||||
field_memo: field_memo
|
||||
|
||||
# field_email:
|
||||
# plugin: merge
|
||||
# source:
|
||||
# - field_administrative_email
|
||||
# - field_private_email
|
||||
|
||||
# field_name:
|
||||
# plugin: merge
|
||||
# source:
|
||||
# - field_name
|
||||
# - field_private_name
|
||||
|
||||
# field_address:
|
||||
# plugin: addressfield
|
||||
# source: field_addresse
|
||||
field_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
|
||||
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d7_users
|
||||
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- migrate_plus
|
||||
- migrate_tools
|
||||
- profile
|
@@ -5,6 +5,7 @@ audit: true
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Content
|
||||
- Materio
|
||||
class: Drupal\user\Plugin\migrate\User
|
||||
|
||||
source:
|
||||
|
@@ -8,4 +8,6 @@ shared_configuration:
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- migrate_plus
|
||||
- migrate_tools
|
||||
- materio_migrate
|
||||
|
Reference in New Issue
Block a user