Search code examples
drupalddev

How to pair DDEV databases for a migration from Drupal 7 to Drupal 8


I realise this is not strictly speaking a ddev support question, but I am hoping you can point me in the right direction.

Quite simply, I want to upgrade a Drupal 7 site to Drupal 8 with the Migrate module. Both sites would be in their own DDEV containers. But how to get the their databases talking to each other?

Hoping this is not such a big ask.

enter image description here


Solution

  • Probably you need two databases but one (d8) codebase for a migration like this. You could use the technique in How can I create and load a second database in ddev? to get your second database going.

    Alex Moreno has demonstrated this technique in https://dev.acquia.com/blog/migrating-drupal-6-drupal-8-boss-0 and https://www.drupal.org/drupalorg/blog/its-time-to-migrate-from-drupal-7-let-me-show-you-how-to-start