users.yml

Same filename in other branches
  1. 9 core/modules/migrate_drupal/tests/modules/migrate_overwrite_test/migrations/users.yml
  2. 10 core/modules/migrate_drupal/tests/modules/migrate_overwrite_test/migrations/users.yml
  3. 11.x core/modules/migrate_drupal/tests/modules/migrate_overwrite_test/migrations/users.yml
core/modules/migrate_drupal/tests/modules/migrate_overwrite_test/migrations/users.yml

File

core/modules/migrate_drupal/tests/modules/migrate_overwrite_test/migrations/users.yml

View source
  1. id: users
  2. label: User migration
  3. migration_tags:
  4. - Drupal 6
  5. - Drupal 7
  6. source:
  7. plugin: d6_user
  8. process:
  9. # If the entity's ID is migrated, the Migrate API will try to update
  10. # an existing entity with that ID. If no entity with that ID already
  11. # exists, it will be created.
  12. uid: uid
  13. name: name
  14. mail: mail
  15. password: password
  16. 'signature/value':
  17. plugin: default_value
  18. default_value: 'The answer is 42.'
  19. destination:
  20. plugin: entity:user
  21. # If the destination is going to update an existing user, you can optionally
  22. # specify the properties that should be overwritten. For example, if the
  23. # migration tries to import user 31 and user 31 already exists in the
  24. # destination database, only the 'name' and 'mail' properties of the user
  25. # will be overwritten. If user 31 doesn't exist, it will be created and
  26. # the overwrite_properties list will be ignored.
  27. overwrite_properties:
  28. - name
  29. - mail
  30. # It's possible to overwrite nested properties too.
  31. - 'signature/value'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.