migrate_plus.migration.d7_user_profile_customer.yml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. id: d7_user_profile_customer
  2. label: D7 User Customer Profile
  3. migration_group: d7_materio
  4. audit: true
  5. migration_tags:
  6. - Drupal 7
  7. - Content
  8. - Materio
  9. source:
  10. plugin: d7_user_profile
  11. batch_size: 1000
  12. high_water_property:
  13. name: changed
  14. alias: p
  15. destination:
  16. plugin: entity:profile
  17. process:
  18. # id: pid
  19. # label: label
  20. type:
  21. -
  22. plugin: skip_on_value
  23. equals: true
  24. source: type
  25. method: row
  26. value:
  27. - contact_operationnel
  28. -
  29. plugin: static_map
  30. source: type
  31. map:
  32. adherent: customer
  33. uid:
  34. plugin: migration_lookup
  35. migration: d7_users
  36. source: uid
  37. phone: field_private_phone
  38. address:
  39. plugin: iterator
  40. source: field_adresse
  41. process:
  42. # langcode:
  43. country_code: country
  44. administrative_area: administrative_area
  45. locality: locality
  46. dependent_locality: dependent_locality
  47. postal_code: postal_code
  48. # sorting_code:
  49. address_line1: thoroughfare
  50. # address_line2:
  51. organization: organisation_name
  52. given_name: first_name
  53. # additional_name:
  54. family_name: last_name
  55. # SOURCES
  56. # sub_administrative_area
  57. # premise
  58. # sub_premise
  59. # name_line
  60. # data
  61. # body:
  62. # plugin: iterator
  63. # source: field_description
  64. # process:
  65. # value: value
  66. # format:
  67. # plugin: default_value
  68. # default_value: wysiwyg
  69. tax_number:
  70. plugin: iterator
  71. source: field_vat_number_intra_ce
  72. process:
  73. value: value
  74. type:
  75. plugin: default_value
  76. default_value: EU
  77. migration_dependencies:
  78. required:
  79. - d7_users
  80. dependencies:
  81. enforced:
  82. module:
  83. - migrate_plus
  84. - migrate_tools
  85. - profile