From 75b47fda52033febef3756b0358c3feda7c9be90 Mon Sep 17 00:00:00 2001 From: Mauricio Dinarte Date: Wed, 4 Dec 2024 10:13:03 -0600 Subject: [PATCH] Add upgrade_d7_taxonomy_term content migration Copied from ref_migrations folder --- .../migrations/upgrade_d7_taxonomy_term.yml | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 drupal10/web/modules/custom/tag1_migration/migrations/upgrade_d7_taxonomy_term.yml diff --git a/drupal10/web/modules/custom/tag1_migration/migrations/upgrade_d7_taxonomy_term.yml b/drupal10/web/modules/custom/tag1_migration/migrations/upgrade_d7_taxonomy_term.yml new file mode 100644 index 0000000..cc54560 --- /dev/null +++ b/drupal10/web/modules/custom/tag1_migration/migrations/upgrade_d7_taxonomy_term.yml @@ -0,0 +1,78 @@ +uuid: cae873b1-70c6-4843-901d-9e2f0077e73a +langcode: en +status: true +dependencies: { } +id: upgrade_d7_taxonomy_term_session_topics +class: Drupal\migrate\Plugin\Migration +field_plugin_method: null +cck_plugin_method: null +migration_tags: + - 'Drupal 7' + - Content +migration_group: migrate_drupal_7 +label: 'Taxonomy terms (Session topics)' +source: + plugin: d7_taxonomy_term + bundle: session_topics +process: + tid: + - + plugin: get + source: tid + revision_id: + - + plugin: get + source: tid + vid: + - + plugin: migration_lookup + migration: upgrade_d7_taxonomy_vocabulary + source: vid + name: + - + plugin: get + source: name + description/value: + - + plugin: get + source: description + description/format: + - + plugin: get + source: format + weight: + - + plugin: get + source: weight + parent_id: + - + plugin: skip_on_empty + method: process + source: parent + - + plugin: migration_lookup + migration: + - upgrade_d7_taxonomy_term_tags + - upgrade_d7_taxonomy_term_session_topics + parent: + - + plugin: default_value + default_value: 0 + source: '@parent_id' + changed: + - + plugin: get + source: timestamp + langcode: + - + plugin: get + source: language +destination: + plugin: 'entity:taxonomy_term' + default_bundle: session_topics +migration_dependencies: + required: + - upgrade_d7_taxonomy_vocabulary + optional: + - upgrade_d7_field_instance + - upgrade_d7_taxonomy_vocabulary