You are here

function migrate_upgrade_drush_command in Migrate Upgrade 8

Same name and namespace in other branches
  1. 8.3 migrate_upgrade.drush.inc \migrate_upgrade_drush_command()
  2. 8.2 migrate_upgrade.drush.inc \migrate_upgrade_drush_command()

Implements hook_drush_command().

File

./migrate_upgrade.drush.inc, line 13
Command-line tools to aid performing and developing upgrade migrations.

Code

function migrate_upgrade_drush_command() {
  $items['migrate-upgrade'] = [
    'description' => 'Perform one or more upgrade processes.',
    'options' => [
      'legacy-db-url' => 'A Drupal 6 style database URL. Required.',
      'legacy-db-prefix' => 'Prefix of the legacy Drupal installation.',
      'legacy-root' => 'Site address or root of the legacy Drupal installation',
      'configure-only' => 'Set up the appropriate upgrade processes but do not perform them',
    ],
    'examples' => [
      'migrate-upgrade --legacy-db-url=\'mysql://root:pass@127.0.0.1/d6\'' => 'Upgrade a Drupal 6 database to Drupal 8',
    ],
    'drupal dependencies' => [
      'migrate_upgrade',
    ],
  ];
  $items['migrate-upgrade-rollback'] = [
    'description' => 'Rolls back and removes upgrade migrations.',
    'examples' => [
      'migrate-upgrade-rollback' => 'Rolls back a previously-run upgrade',
    ],
    'drupal dependencies' => [
      'migrate_upgrade',
    ],
  ];
  return $items;
}