Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / core / modules / file / migrations / d6_upload_field.yml
diff --git a/web/core/modules/file/migrations/d6_upload_field.yml b/web/core/modules/file/migrations/d6_upload_field.yml
new file mode 100644 (file)
index 0000000..4ef6408
--- /dev/null
@@ -0,0 +1,27 @@
+id: d6_upload_field
+label: Upload field configuration
+migration_tags:
+  - Drupal 6
+  - Configuration
+source:
+  # We do an empty source and a proper destination to have an idmap for
+  # migration_dependencies.
+  plugin: md_empty
+  source_module: upload
+  constants:
+    entity_type: node
+    type: file
+    name: upload
+    cardinality: -1
+    display_field: true
+process:
+  entity_type: 'constants/entity_type'
+  field_name: 'constants/name'
+  type: 'constants/type'
+  cardinality: 'constants/cardinality'
+  'settings/display_field': 'constants/display_field'
+destination:
+  plugin: entity:field_storage_config
+  dependencies:
+    module:
+      - file