Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rachellawson/0797218ed3e1be0c96bfb9b10703dd8b to your computer and use it in GitHub Desktop.
Save rachellawson/0797218ed3e1be0c96bfb9b10703dd8b to your computer and use it in GitHub Desktop.
and another that includes a geolocation field - needed to work out how to get the data into the non-simple text field
uuid: xxx
langcode: en
status: true
dependencies: { }
_core:
default_config_hash: QgJp0h7W6HJQxNOodE0hlFp_epwmjzGKWCkBZic7e3s
id: csv_border_crossings
migration_tags:
- CSV
migration_group: null
label: 'CSV file to Border Crossings'
source:
plugin: csv
path: 'public://csv/crossings.csv'
header_row_count: 1
keys:
- id
column_names:
-
id: Id
-
long: long
-
lat: lat
-
from: from
-
to: to
-
title: title
-
description: description
-
supplier: supplier
process:
type:
plugin: default_value
default_value: border_crossing
title: title
body: description
field_geolocation/lng: long
field_geolocation/lat: lat
field_country_exiting: from
field_country_entering: to
field_supplied_by: supplier
destination:
plugin: 'entity:node'
migration_dependencies:
required: { }
optional: { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment