This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source: | |
plugin: content_entity:node | |
bundle: article | |
include_translations: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
process: | |
title: | |
- plugin: concat | |
source: | |
- source_first_name | |
- source_last_name | |
delimiter: ' ' | |
- plugin: callback | |
callable: strtoupper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source: | |
plugin: url | |
data_fetcher_plugin: http | |
# Choose one data parser. | |
data_parser_plugin: json|simple_xml | |
urls: | |
- https://understanddrupal.com/files/data.json | |
item_selector: /data/udm_root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config.yml file | |
# Based off default.config.yml | |
vagrant_hostname: migratedebug.test | |
vagrant_machine_name: migratedebug | |
# For dynamic IP assignment the 'vagrant-auto_network' plugin is required. | |
# Otherwise, use an IP address that has not been used by any other virtual machine. | |
vagrant_ip: 0.0.0.0 | |
# All the other extra packages can remain enabled. | |
# Make sure the following three get installed by uncommenting them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"extra": { | |
"patches": { | |
"drupal/migrate_devel": { | |
"drush 9 support": "https://www.drupal.org/files/issues/2018-10-08/migrate_devel-drush9-2938677-6.patch" | |
}, | |
"drupal/migrate_tools": { | |
"--limit option": "https://www.drupal.org/files/issues/2019-08-19/3024399-55.patch" | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source values: 3.1415, 2.7182, and 1.4142 | |
psf_number_components: | |
plugin: explode | |
source: src_decimal_number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ drush migrate:import --tag='UD Config Group (JSON Source)' | |
$ drush migrate:rollback --tag='UD Config Group (JSON Source)' | |
$ drush migrate:import --group='udm_config_group_json_source' | |
$ drush migrate:rollback --group='udm_config_group_json_source' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1) Run the migration. | |
$ drush migrate:import udm_config_json_source_node_local | |
# 2) Rollback migration because the expected results were not obtained. | |
$ drush migrate:rollback udm_config_json_source_node_local | |
# 3) Change the migration definition file in the "config/install" directory. | |
# 4a) Sync configuration by folder using Drush. | |
$ drush config:import --partial --source="modules/custom/ud_migrations/ud_migrations_config_json_source/config/install" |