X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate_drupal%2Ftests%2Fmodules%2Fmigrate_overwrite_test%2Fmigration_templates%2Fusers.yml;fp=web%2Fcore%2Fmodules%2Fmigrate_drupal%2Ftests%2Fmodules%2Fmigrate_overwrite_test%2Fmigration_templates%2Fusers.yml;h=e23d90d9d7c2cf42cfd7d6a5b7b27a66a0f23868;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/web/core/modules/migrate_drupal/tests/modules/migrate_overwrite_test/migration_templates/users.yml b/web/core/modules/migrate_drupal/tests/modules/migrate_overwrite_test/migration_templates/users.yml new file mode 100644 index 000000000..e23d90d9d --- /dev/null +++ b/web/core/modules/migrate_drupal/tests/modules/migrate_overwrite_test/migration_templates/users.yml @@ -0,0 +1,31 @@ +id: users +label: User migration +migration_tags: + - Drupal 6 + - Drupal 7 +source: + plugin: d6_user +process: + # If the entity's ID is migrated, the Migrate API will try to update + # an existing entity with that ID. If no entity with that ID already + # exists, it will be created. + uid: uid + name: name + mail: mail + password: password + 'signature/value': + plugin: default_value + default_value: 'The answer is 42.' +destination: + plugin: entity:user + # If the destination is going to update an existing user, you can optionally + # specify the properties that should be overwritten. For example, if the + # migration tries to import user 31 and user 31 already exists in the + # destination database, only the 'name' and 'mail' properties of the user + # will be overwritten. If user 31 doesn't exist, it will be created and + # the overwrite_properties list will be ignored. + overwrite_properties: + - name + - mail + # It's possible to overwrite nested properties too. + - 'signature/value'