You are here

function mongodb_migrate_drush_command in MongoDB 7

Implements hook_drush_command().

File

mongodb_migrate/mongodb_migrate.drush.inc, line 11
Drush 8 plugin for mongodb_migrate.

Code

function mongodb_migrate_drush_command() {
  $items['mongodb-migrate-prepare'] = array(
    'description' => 'Prepare for migrate. Resets existing migration. No data is lost.',
  );
  $items['mongodb-migrate'] = array(
    'description' => 'Migrates fields. Run mongodb-migrate-prepare first.',
    'options' => array(
      'timeout' => 'How many seconds the command should run. 0 for no timeout. Defaults to 900.',
      'count' => 'How many entities should the command process. 0 for all. Defaults to all.',
    ),
  );
  return $items;
}