annotate modules/contrib/migrate_plus/migrate_json_example/README.md @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author |
Chris Cannam |
date |
Thu, 28 Feb 2019 13:11:55 +0000 |
parents |
|
children |
12f9dff5fda9 |
rev |
line source |
Chris@4
|
1 A demonstration of a simple import of a JSON file.
|
Chris@4
|
2
|
Chris@4
|
3 REQUIREMENTS
|
Chris@4
|
4 ============
|
Chris@4
|
5 You need the contrib modules Migrate Plus and Migrate Tools.
|
Chris@4
|
6 To make the products.json file available for import, the file will be copied
|
Chris@4
|
7 from the artifacts folder to your sites/default/files folder.
|
Chris@4
|
8
|
Chris@4
|
9 USAGE
|
Chris@4
|
10 =====
|
Chris@4
|
11 Enable the module, check status, import all products and rollback with Drush
|
Chris@4
|
12 drush en migrate_json_example
|
Chris@4
|
13 drush migrate-status
|
Chris@4
|
14 drush migrate-import product
|
Chris@4
|
15 drush migrate-rollback product
|
Chris@4
|
16
|
Chris@4
|
17 See config/optional/migrate_plus.migration.product.yml for details about the
|
Chris@4
|
18 migration.
|
Chris@4
|
19
|
Chris@4
|
20 Thanks to Jeff Geerling and Christophe for the original code:
|
Chris@4
|
21 - https://www.jeffgeerling.com/blog/2016/migrate-custom-json-feed-drupal-8-migrate-source-json
|
Chris@4
|
22 - https://colorfield.be/blog/drupal-8-json-custom-migration
|