From 21e5ee8a161350bcbe6aee545f4ef9dc09bbbdd7 Mon Sep 17 00:00:00 2001 From: David Valdez Date: Mon, 22 Jul 2019 17:37:01 -0500 Subject: [PATCH] Add the migrations of the vocabularies and terms. The vocabularies that are going to be migrated are: vocabulary_1 vocabulary_2 vocabulary_7 vocabulary_10 vocabulary_12 vocabulary_13 --- .../upgrade_d7_taxonomy_term_vocabulary_1.yml | 61 +++++++++++++++++++ ...upgrade_d7_taxonomy_term_vocabulary_10.yml | 61 +++++++++++++++++++ ...upgrade_d7_taxonomy_term_vocabulary_12.yml | 61 +++++++++++++++++++ ...upgrade_d7_taxonomy_term_vocabulary_13.yml | 61 +++++++++++++++++++ .../upgrade_d7_taxonomy_term_vocabulary_2.yml | 61 +++++++++++++++++++ .../upgrade_d7_taxonomy_term_vocabulary_7.yml | 61 +++++++++++++++++++ .../upgrade_d7_taxonomy_vocabulary.yml | 59 ++++++++++++++++++ 7 files changed, 425 insertions(+) create mode 100644 web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_1.yml create mode 100644 web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_10.yml create mode 100644 web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_12.yml create mode 100644 web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_13.yml create mode 100644 web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_2.yml create mode 100644 web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_7.yml create mode 100644 web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_vocabulary.yml diff --git a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_1.yml b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_1.yml new file mode 100644 index 0000000..0a1f74a --- /dev/null +++ b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_1.yml @@ -0,0 +1,61 @@ +langcode: en +status: true +dependencies: { } +id: upgrade_d7_taxonomy_term_vocabulary_1 +class: Drupal\migrate\Plugin\Migration +field_plugin_method: alterFieldFormatterMigration +cck_plugin_method: null +migration_tags: + - 'Drupal 7' + - Content +migration_group: migrate_drupal_7_geo +label: 'Taxonomy terms (Economic Sectors)' +source: + plugin: d7_taxonomy_term + bundle: vocabulary_1 +process: + tid: + - + 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: '0' + forum_container: + - + plugin: get + source: is_container + changed: + - + plugin: get + source: timestamp + langcode: + - + plugin: get + source: language +destination: + plugin: 'entity:taxonomy_term' + default_bundle: vocabulary_1 +migration_dependencies: + required: + - upgrade_d7_taxonomy_vocabulary + optional: { } diff --git a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_10.yml b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_10.yml new file mode 100644 index 0000000..7ed7361 --- /dev/null +++ b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_10.yml @@ -0,0 +1,61 @@ +langcode: en +status: true +dependencies: { } +id: upgrade_d7_taxonomy_term_vocabulary_10 +class: Drupal\migrate\Plugin\Migration +field_plugin_method: alterFieldFormatterMigration +cck_plugin_method: null +migration_tags: + - 'Drupal 7' + - Content +migration_group: migrate_drupal_7_geo +label: 'Taxonomy terms (Visions & Models)' +source: + plugin: d7_taxonomy_term + bundle: vocabulary_10 +process: + tid: + - + 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: '0' + forum_container: + - + plugin: get + source: is_container + changed: + - + plugin: get + source: timestamp + langcode: + - + plugin: get + source: language +destination: + plugin: 'entity:taxonomy_term' + default_bundle: vocabulary_10 +migration_dependencies: + required: + - upgrade_d7_taxonomy_vocabulary + optional: { } diff --git a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_12.yml b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_12.yml new file mode 100644 index 0000000..701a0f1 --- /dev/null +++ b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_12.yml @@ -0,0 +1,61 @@ +langcode: en +status: true +dependencies: { } +id: upgrade_d7_taxonomy_term_vocabulary_12 +class: Drupal\migrate\Plugin\Migration +field_plugin_method: alterFieldFormatterMigration +cck_plugin_method: null +migration_tags: + - 'Drupal 7' + - Content +migration_group: migrate_drupal_7_geo +label: 'Taxonomy terms (Movements & Struggles)' +source: + plugin: d7_taxonomy_term + bundle: vocabulary_12 +process: + tid: + - + 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: '0' + forum_container: + - + plugin: get + source: is_container + changed: + - + plugin: get + source: timestamp + langcode: + - + plugin: get + source: language +destination: + plugin: 'entity:taxonomy_term' + default_bundle: vocabulary_12 +migration_dependencies: + required: + - upgrade_d7_taxonomy_vocabulary + optional: { } diff --git a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_13.yml b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_13.yml new file mode 100644 index 0000000..330b9f6 --- /dev/null +++ b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_13.yml @@ -0,0 +1,61 @@ +langcode: en +status: true +dependencies: { } +id: upgrade_d7_taxonomy_term_vocabulary_13 +class: Drupal\migrate\Plugin\Migration +field_plugin_method: alterFieldFormatterMigration +cck_plugin_method: null +migration_tags: + - 'Drupal 7' + - Content +migration_group: migrate_drupal_7_geo +label: 'Taxonomy terms (Practices, Tools & Strategies)' +source: + plugin: d7_taxonomy_term + bundle: vocabulary_13 +process: + tid: + - + 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: '0' + forum_container: + - + plugin: get + source: is_container + changed: + - + plugin: get + source: timestamp + langcode: + - + plugin: get + source: language +destination: + plugin: 'entity:taxonomy_term' + default_bundle: vocabulary_13 +migration_dependencies: + required: + - upgrade_d7_taxonomy_vocabulary + optional: { } diff --git a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_2.yml b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_2.yml new file mode 100644 index 0000000..1519926 --- /dev/null +++ b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_2.yml @@ -0,0 +1,61 @@ +langcode: en +status: true +dependencies: { } +id: upgrade_d7_taxonomy_term_vocabulary_2 +class: Drupal\migrate\Plugin\Migration +field_plugin_method: alterFieldFormatterMigration +cck_plugin_method: null +migration_tags: + - 'Drupal 7' + - Content +migration_group: migrate_drupal_7_geo +label: 'Taxonomy terms (Regions)' +source: + plugin: d7_taxonomy_term + bundle: vocabulary_2 +process: + tid: + - + 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: '0' + forum_container: + - + plugin: get + source: is_container + changed: + - + plugin: get + source: timestamp + langcode: + - + plugin: get + source: language +destination: + plugin: 'entity:taxonomy_term' + default_bundle: vocabulary_2 +migration_dependencies: + required: + - upgrade_d7_taxonomy_vocabulary + optional: { } diff --git a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_7.yml b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_7.yml new file mode 100644 index 0000000..7b8ec03 --- /dev/null +++ b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_term_vocabulary_7.yml @@ -0,0 +1,61 @@ +langcode: en +status: true +dependencies: { } +id: upgrade_d7_taxonomy_term_vocabulary_7 +class: Drupal\migrate\Plugin\Migration +field_plugin_method: alterFieldFormatterMigration +cck_plugin_method: null +migration_tags: + - 'Drupal 7' + - Content +migration_group: migrate_drupal_7_geo +label: 'Taxonomy terms (Institutions & Structures)' +source: + plugin: d7_taxonomy_term + bundle: vocabulary_7 +process: + tid: + - + 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: '0' + forum_container: + - + plugin: get + source: is_container + changed: + - + plugin: get + source: timestamp + langcode: + - + plugin: get + source: language +destination: + plugin: 'entity:taxonomy_term' + default_bundle: vocabulary_7 +migration_dependencies: + required: + - upgrade_d7_taxonomy_vocabulary + optional: { } diff --git a/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_vocabulary.yml b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_vocabulary.yml new file mode 100644 index 0000000..2a55a03 --- /dev/null +++ b/web/modules/custom/geo_upgrade/migrations/upgrade_d7_taxonomy_vocabulary.yml @@ -0,0 +1,59 @@ +langcode: en +status: true +dependencies: { } +id: upgrade_d7_taxonomy_vocabulary +class: Drupal\migrate\Plugin\Migration +field_plugin_method: alterFieldMigration +cck_plugin_method: null +migration_tags: + - 'Drupal 7' + - Configuration +migration_group: migrate_drupal_7_geo +label: 'Taxonomy vocabularies' +source: + plugin: d7_taxonomy_vocabulary +process: + vid: + - + plugin: make_unique_entity_field + source: machine_name + entity_type: taxonomy_vocabulary + field: vid + length: 32 + migrated: true + - + plugin: forum_vocabulary + machine_name: forums + - + plugin: skip_on_value + method: row + not_equals: true + # Only migrate these vocabularies. + value: + - vocabulary_1 + - vocabulary_2 + - vocabulary_7 + - vocabulary_10 + - vocabulary_12 + - vocabulary_13 + label: + - + plugin: get + source: name + name: + - + plugin: get + source: name + description: + - + plugin: get + source: description + weight: + - + plugin: get + source: weight +destination: + plugin: 'entity:taxonomy_vocabulary' +migration_dependencies: + required: { } + optional: { }