Active
Project:
Drupal-to-Drupal data migration
Version:
7.x-2.1-beta1
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2013 at 13:56 UTC
Updated:
8 Aug 2017 at 18:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
kenorb commentedComment #2
kenorb commentedComment #3
kenorb commentedAs workaround, I did the following script:
and changed the arguments in the db to not include encrypted_arguments.
In this case, I could keep track of database credentials across the environments (easier to change).
Comment #4
kenorb commentedComment #5
kenorb commentedComment #6
mikeryanIt's true, there's no simple way to update the credentials for a UI-based migration - you can go back through the wizard again filling in the new credentials and making all the same selections otherwise, and the credentials will be updated, but that's admittedly a pain.
The simplest short-term solution would be for migrate_d2d to not do an addConnectionInfo() if the connection is already defined - i.e., you could override the database in settings.php (as the referenced issue, misplaced in the Migrate issue queue, suggests). I'll address this.
Comment #7
kenorb commentedI did some workaround, where I've configured Drupal 6 credentials and put into settings file next to standard default:
See: https://drupal.org/node/1810122 for further example.
And then I've defined the following function which updates the db access based on above db credentials from settings file:
Also I've defined the following drush alias:
So I've to run:
each time when I've sql-sync db from other environment and I want to refresh and use my local migrate credentials (which could be different).
Comment #8
kenorb commentedPlease check the following drush example file which implements drush command migrate-refresh-db similar as described in #7.
Comment #9
mscipioni commentedA workaround that worked for me is I backed up my database, created a new migration with the new credentials, used phpmyadmin to download the serialized blob from the arguments column in migrate_group, restored the old database, and finally replaced the original blob with the one I had downloaded. This had the effect of updating the connection configuration while retaining all of the previous settings I had saved in the migrate UI.