Commit 9d524495 authored by Adrian Rossouw's avatar Adrian Rossouw

migrating sites between db servers is now possible.

parent 511f1654
......@@ -72,6 +72,10 @@ function drush_provision_drupal_provision_migrate($platform, $new_uri = null) {
$options['platform'] = $platform;
$options['root'] = d($platform)->root;
if ($db_server = drush_get_option('new_db_server', FALSE)) {
$options['db_server'] = $db_server;
drush_backend_invoke_args('provision-save', array($target), $options);
provision_backend_invoke($target, 'provision-deploy', array(drush_get_option('backup_file')));
if (!drush_get_error()) {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment