annotate modules/contrib/migrate_plus/migrate_json_example/README.md @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
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@5 21 https://www.jeffgeerling.com/blog/2016/migrate-custom-json-feed-drupal-8-migrate-source-json
Chris@5 22
Chris@5 23 https://colorfield.be/blog/drupal-8-json-custom-migration