Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / user / migrations / d7_user.yml
diff --git a/web/core/modules/user/migrations/d7_user.yml b/web/core/modules/user/migrations/d7_user.yml
new file mode 100644 (file)
index 0000000..00eabf2
--- /dev/null
@@ -0,0 +1,59 @@
+id: d7_user
+label: User accounts
+audit: true
+migration_tags:
+  - Drupal 7
+  - Content
+class: Drupal\user\Plugin\migrate\User
+source:
+  plugin: d7_user
+process:
+  # If you are using this file to build a custom migration consider removing
+  # the uid field to allow incremental migrations.
+  uid: uid
+  name: name
+  pass: pass
+  mail: mail
+  created: created
+  access: access
+  login: login
+  status: status
+  timezone: timezone
+  langcode:
+    plugin: user_langcode
+    source: 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: migration_lookup
+    migration: d7_user_role
+    source: roles
+  user_picture:
+    -
+      plugin: default_value
+      source: picture
+      default_value: null
+    -
+      plugin: migration_lookup
+      migration: d7_file
+destination:
+  plugin: entity:user
+migration_dependencies:
+  required:
+    - d7_user_role
+  optional:
+    - d7_field_instance
+    - d7_file
+    - language
+    - default_language
+    - user_picture_field_instance
+    - user_picture_entity_display
+    - user_picture_entity_form_display