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
This commit is contained in:
parent
aeab446632
commit
21e5ee8a16
7 changed files with 425 additions and 0 deletions
|
@ -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: { }
|
|
@ -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: { }
|
|
@ -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: { }
|
|
@ -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: { }
|
|
@ -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: { }
|
|
@ -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: { }
|
|
@ -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: { }
|
Loading…
Add table
Reference in a new issue