2019-02-06 12:59:51 +01:00
|
|
|
id: d7_users
|
|
|
|
label: User accounts
|
|
|
|
migration_group: d7_materio
|
|
|
|
audit: true
|
|
|
|
migration_tags:
|
|
|
|
- Drupal 7
|
|
|
|
- Content
|
2019-02-06 22:05:59 +01:00
|
|
|
- Materio
|
2019-02-06 12:59:51 +01:00
|
|
|
|
|
|
|
source:
|
2019-04-12 01:06:54 +02:00
|
|
|
plugin: d7_users
|
2020-11-17 11:23:03 +01:00
|
|
|
batch_size: 1000
|
2019-02-06 12:59:51 +01:00
|
|
|
|
|
|
|
destination:
|
|
|
|
plugin: entity:user
|
|
|
|
|
|
|
|
process:
|
|
|
|
name: name
|
|
|
|
pass: pass
|
|
|
|
mail:
|
|
|
|
-
|
|
|
|
plugin: skip_on_value
|
|
|
|
equals: true
|
|
|
|
source: mail
|
|
|
|
method: row
|
|
|
|
value:
|
|
|
|
- "dev@g-u-i.net"
|
|
|
|
- "admin@g-u-i.net"
|
|
|
|
-
|
|
|
|
plugin: default_value
|
|
|
|
source: mail
|
|
|
|
default_value: null
|
|
|
|
|
|
|
|
created: created
|
|
|
|
access: access
|
|
|
|
login: login
|
|
|
|
status: status
|
|
|
|
timezone: timezone
|
|
|
|
langcode:
|
|
|
|
plugin: user_langcode
|
|
|
|
source: entity_language
|
|
|
|
fallback_to_site_default: false
|
|
|
|
preferred_langcode:
|
|
|
|
plugin: user_langcode
|
|
|
|
source: language
|
|
|
|
fallback_to_site_default: true
|
|
|
|
preferred_admin_langcode:
|
|
|
|
plugin: user_langcode
|
|
|
|
source: language
|
|
|
|
fallback_to_site_default: true
|
|
|
|
init: init
|
|
|
|
roles:
|
|
|
|
plugin: static_map
|
|
|
|
source: roles
|
|
|
|
default_value: 2
|
|
|
|
map:
|
|
|
|
1: "anonymous"
|
|
|
|
2: "authenticated"
|
|
|
|
3: "admin"
|
|
|
|
4: "root"
|
|
|
|
5: "contact_company"
|
|
|
|
6: "adherent"
|
|
|
|
7: "free_user"
|
|
|
|
8: "premium"
|
|
|
|
9: "unverified"
|
|
|
|
10: "student"
|
|
|
|
11: "alpha_testeur"
|
|
|
|
12: "translator"
|
|
|
|
13: "admin_showroom"
|
|
|
|
|
|
|
|
field_company:
|
|
|
|
plugin: migration_lookup
|
|
|
|
migration: d7_taxonomy_term_company
|
|
|
|
source: field_company
|
2019-04-12 01:06:54 +02:00
|
|
|
no_stub: true
|
|
|
|
# field_company:
|
|
|
|
# -
|
|
|
|
# plugin: sub_process
|
|
|
|
# source: field_company
|
|
|
|
# process:
|
|
|
|
# target_id:
|
|
|
|
# plugin: migration_lookup
|
|
|
|
# migration: d7_taxonomy_term_company
|
|
|
|
# source: tid
|
|
|
|
# no_stub: true
|
|
|
|
# field_company:
|
|
|
|
# plugin: default_value
|
|
|
|
# default_value: 2673
|
2019-02-06 12:59:51 +01:00
|
|
|
|
|
|
|
field_showroom:
|
|
|
|
plugin: migration_lookup
|
|
|
|
migration: d7_taxonomy_term_showroom
|
2019-04-12 01:06:54 +02:00
|
|
|
no_stub: true
|
2019-02-06 12:59:51 +01:00
|
|
|
source: field_showroom
|
|
|
|
|
|
|
|
field_memo: field_memo
|
|
|
|
|
2019-04-12 01:06:54 +02:00
|
|
|
# user_picture:
|
|
|
|
# -
|
|
|
|
# plugin: default_value
|
|
|
|
# source: picture
|
|
|
|
# default_value: null
|
|
|
|
# -
|
|
|
|
# plugin: migration_lookup
|
|
|
|
# migration: d7_file
|
|
|
|
# no_stub: true
|
|
|
|
|
2021-07-16 17:03:32 +02:00
|
|
|
field_member_type: member_type
|
|
|
|
# plugin: static_map
|
|
|
|
# source: member_type
|
|
|
|
# default_value: 0
|
|
|
|
# map:
|
|
|
|
# 0:abo01-A
|
|
|
|
# 1:abo01-B
|
|
|
|
# 2:abo01-C
|
|
|
|
|
2019-02-06 12:59:51 +01:00
|
|
|
migration_dependencies:
|
|
|
|
required:
|
|
|
|
- d7_allpublicfiles
|
2019-04-11 19:02:33 +02:00
|
|
|
- d7_taxonomy_term_showroom
|
|
|
|
- d7_taxonomy_term_company
|
2019-02-06 12:59:51 +01:00
|
|
|
# optional:
|
|
|
|
# - d7_field_instance
|
|
|
|
# - d7_file
|
|
|
|
# - language
|
|
|
|
# - default_language
|
|
|
|
# - user_picture_field_instance
|
|
|
|
# - user_picture_entity_display
|
|
|
|
# - user_picture_entity_form_display
|