Code Monkey home page Code Monkey logo

advanced_migrations's Introduction

Advanced migrations

This module contains some examples of more advanced migrations:

  • Funky process plugin to import hierarchical terms
  • Migrate tools data fetcher plugin for scanning a directory of JSON files
  • Migration templates to import entity translations
  • Product setup and migration of product variations

Just setup the project following the steps below using Docker and you can run the migrations:

drush ms
drush migrate:import --all

Development setup

Run the following commands:

$ docker-compose up -d
$ docker-compose exec php composer install
$ docker-compose exec php ./vendor/bin/run drupal:site-install

Go to http://localhost:8080/build and you have a Drupal site running with the module and its dependencies!

Requirements:

advanced_migrations's People

Contributors

upchuk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

advanced_migrations's Issues

Recognize migration scripts

Thank you for the great article and this example module.

I'm having troubles getting Drupal to recognize the configuration files inside the migrations folder. Is there a step I'm overlooking other than enabling the module?

Run migration from derivative translation

Thank you for the great example module.

I have some translations generated by the Derivative Discovery.

product_article_translations         Idle     N/A     0          N/A
product_article_translations:de-CH   Idle     N/A     0          N/A
product_article_translations:fr-CH   Idle     1228    0          1228

However, when I try to run a specific language I get an error in the command line:

../vendor/drush/drush/drush mim product_article_translations:fr-CH --limit=10
 [error]  No migrations found.

How can I run a specific language from drush? Am I doing something wrong?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.