Check your version

This video covers a topic in Drupal 7 which may or may not be the version you're using. We're keeping this tutorial online as a courtesy to users of Drupal 7, but we consider it archived.

Preparing Your Environment to Run Migrations

Video loading...

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:05
    with Joe Shindelar
  • 0:07
    In this lesson, we're going to take a look at writing
  • 0:10
    some of the first code that we need in order
  • 0:12
    to start implementing our own custom migration.
  • 0:16
    The first thing we need to do is edit our settings.php file,
  • 0:19
    and add some additional information to it
  • 0:21
    so that Drupal and the migrate module
  • 0:23
    know how to connect to our source database, in addition
  • 0:26
    to the database that houses the Drupal website.
  • 0:30
    Then we're going to write a skeleton module, which implements

Preparing Your Environment to Run Migrations

Loading...

Running your own migration requires a bit of setup and boilerplate code, Drupal needs to know where to find the source data, and the Migrate module needs to be provided with some basic information about our custom code. In this lesson we'll look at setting up Drupal to be able to connect to multiple databases, and then create the skeleton of a simple module which will house our custom migration code and an implementation of hook_migrate_api(). Finally we'll create a base class from which we can begin writing our own custom migrations, and talk about why this is a good way to start organizing our migration.

Downloads: 
Log in or sign up to download companion files.

Additional resources:
There are no resources for this video. If you believe there should be, please contact us.