mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-01-12 23:24:34 +00:00
Customize upgrade_d7_user migration
This commit is contained in:
parent
5e39868e2a
commit
fc1d44d42c
1 changed files with 19 additions and 17 deletions
|
@ -1,18 +1,17 @@
|
|||
uuid: 0d03a681-dd7c-46f6-a9d9-0fc82b8525d2
|
||||
langcode: en
|
||||
status: true
|
||||
dependencies: { }
|
||||
id: upgrade_d7_user
|
||||
class: Drupal\user\Plugin\migrate\User
|
||||
field_plugin_method: null
|
||||
cck_plugin_method: null
|
||||
migration_tags:
|
||||
- 'Drupal 7'
|
||||
- Content
|
||||
migration_group: migrate_drupal_7
|
||||
- user
|
||||
- tag1_content
|
||||
label: 'User accounts'
|
||||
source:
|
||||
key: migrate
|
||||
plugin: d7_user
|
||||
high_water_property:
|
||||
name: changed
|
||||
alias: u
|
||||
process:
|
||||
uid:
|
||||
-
|
||||
|
@ -34,6 +33,10 @@ process:
|
|||
-
|
||||
plugin: get
|
||||
source: created
|
||||
changed:
|
||||
-
|
||||
plugin: get
|
||||
source: changed
|
||||
access:
|
||||
-
|
||||
plugin: get
|
||||
|
@ -44,8 +47,10 @@ process:
|
|||
source: login
|
||||
status:
|
||||
-
|
||||
plugin: get
|
||||
plugin: skip_on_empty
|
||||
source: status
|
||||
method: row
|
||||
message: 'User was not migrated because the account is blocked.'
|
||||
timezone:
|
||||
-
|
||||
plugin: get
|
||||
|
@ -71,9 +76,12 @@ process:
|
|||
source: init
|
||||
roles:
|
||||
-
|
||||
plugin: migration_lookup
|
||||
migration: upgrade_d7_user_role
|
||||
plugin: static_map
|
||||
source: roles
|
||||
map:
|
||||
3: administrator
|
||||
4: content_editor
|
||||
bypass: TRUE
|
||||
user_picture:
|
||||
-
|
||||
plugin: default_value
|
||||
|
@ -86,11 +94,5 @@ destination:
|
|||
plugin: 'entity:user'
|
||||
migration_dependencies:
|
||||
required:
|
||||
- upgrade_d7_user_role
|
||||
optional:
|
||||
- upgrade_d7_field_instance
|
||||
- upgrade_d7_file
|
||||
- upgrade_user_picture_field_instance
|
||||
- upgrade_user_picture_entity_display
|
||||
- upgrade_user_picture_entity_form_display
|
||||
- upgrade_d7_user_role
|
||||
optional: { }
|
||||
|
|
Loading…
Reference in a new issue