function dbtng_migrator_drush_command in DBTNG Migrator 7
Implementation of drush hook_drush_command().
File
- ./
dbtng_migrator.drush.inc, line 6
Code
function dbtng_migrator_drush_command() {
$items = array();
$items['dbtng-replicate'] = array(
'description' => "Replicate database 'origin' across to database 'destination' independant of database driver type.",
'arguments' => array(
'origin' => 'The connection key for the database to copy from',
'destination' => 'The connection key for the database to copy into',
),
'examples' => array(
'drush dbtng-replicate default pgsql' => 'Replicate the default database to a datase with the key named "pgsql" in $databases in settings.php',
),
'aliases' => array(
'replicate',
'dbtng-migrator',
'dbtng-migrate',
),
'bootstrap' => DRUSH_BOOTSTRAP_DRUPAL_FULL,
);
return $items;
}