Community Documentation

Migrate module FAQ

Last updated December 5, 2012. Created by mikeryan on January 2, 2011.
Edited by Frank Ralf, profelm, kelvincool. Log in to edit this page.

1. I added a migration class to example.inc, but I don't see it when I type drush ms.

Make sure that:

a. The file containing the class definition is in your module's .info file.
b. You have cleared the Drupal cache (e.g., at the command line type drush cc all) - the registry is only rebuilt on a cache clear.
c. You have implemented hook_migrate_api in your example.migrate.inc or example.module file:

<?php
function example_migrate_api() {
 
$api = array(
   
'api' => 2,
  );
  return
$api;
}
?>

d. You are using an up to date version of Drush.

Comments

migrate-status alias

This should be relatively straightforward, but drush ms is an alias for drush migrate-status.

Page status

About this page

Drupal version
Drupal 6.x, Drupal 7.x
Audience
Programmers

Administration & Security Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.