From 731d30cd5f5e6033195ee8ae50fce413b63b2a9e Mon Sep 17 00:00:00 2001 From: David Valdez Date: Mon, 22 Jul 2019 18:12:44 -0500 Subject: [PATCH] Migrate the taxonomy terms in the blog and articles content types --- .../migrations/upgrade_d7_node_blog.yml | 78 ++++++++++-------- .../migrations/upgrade_d7_node_story.yml | 82 ++++++++++--------- 2 files changed, 84 insertions(+), 76 deletions(-) diff --git a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_blog.yml b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_blog.yml index b95f6f5..ad23a1f 100644 --- a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_blog.yml +++ b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_blog.yml @@ -71,48 +71,48 @@ process: # - # plugin: get # source: comment -# taxonomy_vocabulary_1: -# - -# plugin: sub_process -# source: taxonomy_vocabulary_1 -# process: -# target_id: tid -# taxonomy_vocabulary_7: -# - -# plugin: sub_process -# source: taxonomy_vocabulary_7 -# process: -# target_id: tid -# taxonomy_vocabulary_12: -# - -# plugin: sub_process -# source: taxonomy_vocabulary_12 -# process: -# target_id: tid -# taxonomy_vocabulary_13: -# - -# plugin: sub_process -# source: taxonomy_vocabulary_13 -# process: -# target_id: tid + field_economic_sectors: + - + plugin: sub_process + source: taxonomy_vocabulary_1 + process: + target_id: tid + field_institutions_structures: + - + plugin: sub_process + source: taxonomy_vocabulary_7 + process: + target_id: tid + field_movements_struggles: + - + plugin: sub_process + source: taxonomy_vocabulary_12 + process: + target_id: tid + field_practices_tools_strategies: + - + plugin: sub_process + source: taxonomy_vocabulary_13 + process: + target_id: tid # taxonomy_vocabulary_14: # - # plugin: sub_process # source: taxonomy_vocabulary_14 # process: # target_id: tid -# taxonomy_vocabulary_10: -# - -# plugin: sub_process -# source: taxonomy_vocabulary_10 -# process: -# target_id: tid -# taxonomy_vocabulary_2: -# - -# plugin: sub_process -# source: taxonomy_vocabulary_2 -# process: -# target_id: tid + field_visions_models: + - + plugin: sub_process + source: taxonomy_vocabulary_10 + process: + target_id: tid + field_regions: + - + plugin: sub_process + source: taxonomy_vocabulary_2 + process: + target_id: tid # taxonomy_vocabulary_3: # - # plugin: sub_process @@ -154,4 +154,10 @@ destination: migration_dependencies: required: - upgrade_d7_user + - upgrade_d7_taxonomy_term_vocabulary_1 + - upgrade_d7_taxonomy_term_vocabulary_2 + - upgrade_d7_taxonomy_term_vocabulary_7 + - upgrade_d7_taxonomy_term_vocabulary_10 + - upgrade_d7_taxonomy_term_vocabulary_12 + - upgrade_d7_taxonomy_term_vocabulary_13 optional: { } diff --git a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_story.yml b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_story.yml index b5b0fe1..916e6fa 100644 --- a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_story.yml +++ b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_node_story.yml @@ -67,52 +67,48 @@ process: - plugin: get source: timestamp -# comment_node_story/0/status: -# - -# plugin: get -# source: comment -# taxonomy_vocabulary_1: -# - -# plugin: sub_process -# source: taxonomy_vocabulary_1 -# process: -# target_id: tid -# taxonomy_vocabulary_7: -# - -# plugin: sub_process -# source: taxonomy_vocabulary_7 -# process: -# target_id: tid -# taxonomy_vocabulary_12: -# - -# plugin: sub_process -# source: taxonomy_vocabulary_12 -# process: -# target_id: tid -# taxonomy_vocabulary_13: -# - -# plugin: sub_process -# source: taxonomy_vocabulary_13 -# process: -# target_id: tid + field_economic_sectors: + - + plugin: sub_process + source: taxonomy_vocabulary_1 + process: + target_id: tid + field_institutions_structures: + - + plugin: sub_process + source: taxonomy_vocabulary_7 + process: + target_id: tid + field_movements_struggles: + - + plugin: sub_process + source: taxonomy_vocabulary_12 + process: + target_id: tid + field_practices_tools_strategies: + - + plugin: sub_process + source: taxonomy_vocabulary_13 + process: + target_id: tid # taxonomy_vocabulary_14: # - # plugin: sub_process # source: taxonomy_vocabulary_14 # process: # target_id: tid -# taxonomy_vocabulary_10: -# - -# plugin: sub_process -# source: taxonomy_vocabulary_10 -# process: -# target_id: tid -# taxonomy_vocabulary_2: -# - -# plugin: sub_process -# source: taxonomy_vocabulary_2 -# process: -# target_id: tid + field_visions_models: + - + plugin: sub_process + source: taxonomy_vocabulary_10 + process: + target_id: tid + field_regions: + - + plugin: sub_process + source: taxonomy_vocabulary_2 + process: + target_id: tid # taxonomy_vocabulary_3: # - # plugin: sub_process @@ -215,4 +211,10 @@ destination: migration_dependencies: required: - upgrade_d7_user + - upgrade_d7_taxonomy_term_vocabulary_1 + - upgrade_d7_taxonomy_term_vocabulary_2 + - upgrade_d7_taxonomy_term_vocabulary_7 + - upgrade_d7_taxonomy_term_vocabulary_10 + - upgrade_d7_taxonomy_term_vocabulary_12 + - upgrade_d7_taxonomy_term_vocabulary_13 optional: { }