Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. id: materials
  2. label: PIC Material Index
  3. migration_group: epic_pic
  4. source:
  5. plugin: csv
  6. path: "modules/custom/epic_migration/assets/csv/ola_pic_materials_index.csv"
  7. enclosure: '"'
  8. header_row_count: 0
  9. keys:
  10. - record_id
  11. - mi_code
  12. column_names:
  13. 0:
  14. record_id: record_id
  15. 1:
  16. mi_code: mi_code
  17. 2:
  18. material_seq: material_seq
  19. 3:
  20. material_symbol_code: material_symbol_code
  21. 4:
  22. symbol_location: symbol_location
  23. process:
  24. field_material: mi_code
  25. field_material_symbol_code: material_symbol_code
  26. field_symbol_location: symbol_location
  27. destination:
  28. plugin: 'entity_reference_revisions:paragraph'
  29. default_bundle: materials_filters
  30. migration_dependencies:
  31. required: { }
  32. optional: { }
  33.  
  34. id: epic_pic_data
  35. label: PIC Data migration
  36. migration_group: epic_pic
  37. source:
  38. plugin: csv
  39. path: "modules/custom/epic_migration/assets/csv/ola_pic_data.csv"
  40. enclosure: '"'
  41. header_row_count: 0
  42. keys:
  43. - record_id
  44. column_names:
  45. *
  46. *
  47. *
  48. *
  49. process:
  50. type:
  51. plugin: default_value
  52. default_value: lens
  53. title: Product_brand_name
  54. *
  55. *
  56. *
  57. *
  58. 'field_materials_filters/target_id':
  59. -
  60. plugin: migration_lookup
  61. migration: materials
  62. no_stub: true
  63. source: id
  64. -
  65. plugin: extract
  66. index:
  67. - '0'
  68. 'field_materials_filters/target_revision_id':
  69. -
  70. plugin: migration_lookup
  71. migration: materials
  72. no_stub: true
  73. source: id
  74. -
  75. plugin: extract
  76. index:
  77. - 1
  78. destination:
  79. plugin: entity:node
  80. migration_dependencies:
  81. required:
  82. - materials
  83. optional: { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement