created user profil customer migration
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
id: d7_user_profile_customer
|
||||
label: D7 User Customer Profile
|
||||
migration_group: d7_materio
|
||||
audit: true
|
||||
migration_tags:
|
||||
- Drupal 7
|
||||
- Content
|
||||
- Materio
|
||||
|
||||
source:
|
||||
plugin: d7_user_profile
|
||||
batch_size: 1000
|
||||
high_water_property:
|
||||
name: changed
|
||||
alias: p
|
||||
|
||||
destination:
|
||||
plugin: entity:profile
|
||||
|
||||
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
|
||||
|
||||
uid:
|
||||
plugin: migration_lookup
|
||||
migration: d7_users
|
||||
source: uid
|
||||
|
||||
phone: field_private_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
|
||||
|
||||
# body:
|
||||
# plugin: iterator
|
||||
# source: field_description
|
||||
# process:
|
||||
# value: value
|
||||
# format:
|
||||
# plugin: default_value
|
||||
# default_value: wysiwyg
|
||||
tax_number:
|
||||
plugin: iterator
|
||||
source: field_vat_number_intra_ce
|
||||
process:
|
||||
value: value
|
||||
type:
|
||||
plugin: default_value
|
||||
default_value: EU
|
||||
|
||||
migration_dependencies:
|
||||
required:
|
||||
- d7_users
|
||||
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- migrate_plus
|
||||
- migrate_tools
|
||||
- profile
|
@@ -16,22 +16,23 @@ dependencies:
|
||||
# https://www.liip.ch/en/blog/using-the-new-drupal-8-migration-api-module
|
||||
config_devel:
|
||||
install:
|
||||
- migrate_plus.migration.d7_users
|
||||
- migrate_plus.migration_group.d7_materio
|
||||
- migrate_plus.migration.d7_allpublicfiles
|
||||
- migrate_plus.migration.d7_taxonomy_term_thesaurus
|
||||
- migrate_plus.migration.d7_taxonomy_term_thesaurus_i18n
|
||||
- migrate_plus.migration.d7_taxonomy_term_tags
|
||||
- migrate_plus.migration.d7_taxonomy_term_tags_i18n
|
||||
- migrate_plus.migration.d7_taxonomy_term_company
|
||||
- migrate_plus.migration.d7_taxonomy_term_showroom
|
||||
- migrate_plus.migration.d7_users
|
||||
- migrate_plus.migration.d7_user_profile
|
||||
- migrate_plus.migration.d7_user_profile_customer
|
||||
- migrate_plus.migration.d7_uc_roles_license
|
||||
- migrate_plus.migration.d7_simplenews_subscribers
|
||||
- migrate_plus.migration.d7_node_article
|
||||
- migrate_plus.migration.d7_simplenews_nodes
|
||||
- migrate_plus.migration.d7_node_materiau
|
||||
- migrate_plus.migration.d7_node_materiau_i18n
|
||||
- migrate_plus.migration.d7_node_article
|
||||
- migrate_plus.migration.d7_node_article_i18n
|
||||
- migrate_plus.migration.d7_user_profile
|
||||
- migrate_plus.migration_group.d7_materio
|
||||
- migrate_plus.migration.d7_taxonomy_term_showroom
|
||||
- migrate_plus.migration.d7_taxonomy_term_tags_i18n
|
||||
- migrate_plus.migration.d7_taxonomy_term_tags
|
||||
- migrate_plus.migration.d7_taxonomy_term_thesaurus_i18n
|
||||
- migrate_plus.migration.d7_taxonomy_term_thesaurus
|
||||
- migrate_plus.migration.d7_simplenews_nodes
|
||||
- migrate_plus.migration.d7_simplenews_subscribers
|
||||
- migrate_plus.migration.d7_flaglists
|
||||
- migrate_plus.migration.d7_flaglistitems
|
||||
|
Reference in New Issue
Block a user