function drush_migrate_reset_status in Migrate 7.2
Same name and namespace in other branches
- 6.2 migrate.drush.inc \drush_migrate_reset_status()
Reset the status of a given migration.
File
- ./
migrate.drush.inc, line 1396 - Drush support for the migrate module
Code
function drush_migrate_reset_status($args = NULL) {
try {
$migrations = drush_migrate_get_migrations($args);
foreach ($migrations as $migration) {
drush_log(dt("Resetting '!description' migration", array(
'!description' => $migration
->getMachineName(),
)));
$migration
->resetStatus();
}
} catch (MigrateException $e) {
drush_print($e
->getMessage());
exit;
}
}