Git Product home page Git Product logo

dc-migrate's Introduction

DrupalCenter Migrate

This project contains several migrations used to do major upgrades of DrupalCenter.

Installation

Clone the project into modules/custom of your Drupal installation and run composer install within the modules directory. Alternative you can add the repository as a package to your projects composer.json and run composer require drupalcenter/dc-migrate:"dev-8.x-4.x".

Install dc_migrate as any other module (using the UI or drush en dc_migrate.

Configuration

To use the source database within the migrations you have to run the following command: drush upm-database-add dc_migrate {db-name} --username={name} --password={pass}. For further information about the command run drush help upm-database-add.

Running migrations

  1. Before running a migration make sure to set the source database as described above.

  2. Add the following lines to settings.local.php to add the base migration directory:

     /**
      * Set migration source directory (relative from Drupal root).
      */
     $settings['file_migration_source_path'] = '../migration';
    
  3. Run the following drush commands to fix some glitches in the source data:

    • drush dc-fix-upload-weights --batch-size=10
    • drush dc-fix-upload-weights comment --batch-size=10
  4. Run the migrations:

  • User accounts:

    • drush mi dc_user_accounts --feedback=1000
    • drush mi dc_fields___user_accounts
  • Terms:

    • drush mi dc_term__drupal_version
    • drush mi dc_term__showroom_category
    • drush mi dc_term__news_category
    • drush mi dc_term__forum
  • Files:

    • drush mi dc_file__user_picture
    • drush mi dc_file_upload__handbook
    • drush mi dc_file_upload__news
    • drush mi dc_file_upload__forum
    • drush mi dc_file_upload__comment__forum
    • drush mi dc_file_upload__showroom
  • Media:

    • drush mi dc_media__user_picture
    • drush mi dc_media__handbook
    • drush mi dc_media__news
    • drush mi dc_media__forum
    • drush mi dc_media__comment__forum
    • drush mi dc_media__showroom
  • Handbook:

    • drush mi dc_node__handbook
    • drush mi dc_book__handbook
    • drush mi dc_comment__handbook
  • FAQ:

    • drush mi dc_node__handbook_faq
    • drush mi dc_book__handbook_faq
    • drush mi dc_node__faq
    • drush mi dc_book__faq
    • drush mi dc_comment__faq
    • drush mi dc_paragraphs__files__handbook
    • drush mi dc_fields__handbook__content
  • News:

    • drush mi dc_node__news
    • drush mi dc_comment__news
    • drush mi dc_paragraphs__files__news
    • drush mi dc_fields__news__content
  • Forum:

    • drush mi dc_node__forum (takes a while)
    • drush mi dc_comment__forum (you may grab some coffee)
    • drush mi dc_fields__forum__files
    • drush mi dc_fields__comment__forum__files
  • Showroom:

    • drush mi dc_node__showroom
    • drush mi dc_paragraphs__text__showroom_description
    • drush mi dc_paragraphs__text__showroom_custom_dev
    • drush mi dc_paragraphs__text__showroom_core_modules
    • drush mi dc_paragraphs__text__showroom_contrib_modules
    • drush mi dc_fields__showroom__content
  1. Finalize migration:
  • drush code-update-codephp

dc-migrate's People

Watchers

 avatar  avatar

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.