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 chriscalip/f2efaf73976b2ed42608aa8f3c35dc99 to your computer and use it in GitHub Desktop.
Save chriscalip/f2efaf73976b2ed42608aa8f3c35dc99 to your computer and use it in GitHub Desktop.
Example gist for issue https://www.drupal.org/project/migrate_plus/issues/2949271 migration using destination plugin
id: termgroup2table
label: "Group taxonomy terms to group model."
migration_group: d82tables
dependencies:
enforced:
module:
- capacitype_move2aa
langcode: en
status: true
source:
plugin: c5ontent_entity:taxonomy_term
bundle: group
include_translations: false
process:
name: 'name/0/value'
description: 'description/0/value'
created_at:
plugin: c5_timestamp_to_datetime
source: 'changed/0/value'
updated_at:
plugin: c5_timestamp_to_datetime
source: 'changed/0/value'
destination:
plugin: table
table_name: groups
database_key: aa
id_fields:
id:
type: integer
fields:
id: 'id'
name: 'name'
description: 'description'
alias: alias
url: url
created_at: created_at
updated_at: updated_at
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment