Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / file / migrations / d6_upload.yml
diff --git a/web/core/modules/file/migrations/d6_upload.yml b/web/core/modules/file/migrations/d6_upload.yml
new file mode 100644 (file)
index 0000000..1c34e58
--- /dev/null
@@ -0,0 +1,32 @@
+id: d6_upload
+label: File uploads
+migration_tags:
+  - Drupal 6
+  - Content
+source:
+  plugin: d6_upload
+process:
+  nid: nid
+  vid: vid
+  langcode:
+    plugin: user_langcode
+    source: language
+    fallback_to_site_default: true
+  type: type
+  upload:
+    plugin: sub_process
+    source: upload
+    process:
+      target_id:
+        plugin: migration_lookup
+        migration: d6_file
+        source: fid
+      display: list
+      description: description
+destination:
+  plugin: entity:node
+migration_dependencies:
+  required:
+    - d6_file
+    - d6_node
+    - d6_upload_field_instance