function upgrade_drush_command

3.x upgrade.drush.inc upgrade_drush_command()
4.x upgrade.drush.inc upgrade_drush_command()

Implement hook_drush_command().

File

commands/core/upgrade.drush.inc, line 15

Code

function upgrade_drush_command() {
  $items = array();

  $items['site-upgrade'] = array(
    'description' => "Run a major version upgrade for Drupal core and contrib modules.",
    'drupal dependencies' => array('update'),
    'core' => array(6), // Remove once 3.0 is released.
    'arguments' => array(
      'target' => 'The name of a sitealias, which points to the destination site. root, uri, and db-url keys are required. See examples/aliases.drushrc.php for more information.',
    ),
    'examples' => array(
      'drush site-upgrade @onward' => 'Upgrade from the current site to the site specified by @onward alias.',
    ),
    'options' => array(
      'structure-tables-key' => 'A key in the structure-tables array. @see example.drushrc.php. Defaults to \'common\'.',
      'source-dump' => 'Path to dump file. Medium or large sized sites should set this. Optional; default is to create a temporary file.',
      'db-su' => 'DB username to use when dropping and creating the target database. Optional.',
      'db-su-pw' => 'DB password to use when dropping and creating the target database. Optional.',
    ),
    'aliases' => array('sup'),
  );
  return $items;
}