1. Run drush migrate-upgrade --configure-only
  2. Do drush migrate-status
  3. See a lot of The specified database connection is not defined: drupal_6

When implemented, the expectation was that --configure-only would be used to generate migration .yml files which would be put into a custom migration module's config/install and run from there. However, many people are running --configure-only and attempting to use the generated migrations immediately in the current environment. This does not work - the database credentials are not saved in the generated configuration entities (intentionally, because you would not normally want to inadvertently commit database credentials to your code repo). They should however be stored in state and the generated migrations should be pointed to the database state key - this does not seem to be working, however.

This will need to be fixed in the 8.x-3.x branch as well.

Comments

mikeryan created an issue. See original summary.

  • mikeryan committed bcf5dc5 on 8.x-2.x
    Issue #2793723 by mikeryan: Using --configure-only migrations fails
    

  • mikeryan committed c1bab09 on 8.x-3.x
    Issue #2793723 by mikeryan: Using --configure-only migrations fails
    
mikeryan’s picture

Status: Active » Fixed

Apparently I was lying to myself - the database configuration was being saved to the group, but incorrectly (i.e., not under the 'source' key). Fixed for 8.x-2.x and 8.x-3.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.