Change record status: 
Project: 
Introduced in branch: 
9.5.x
Introduced in version: 
9.5.0
Description: 

The Migrate Drupal UI module provides a browser user interface which allows you to upgrade an existing Drupal 6 or Drupal 7 site to Drupal 9 or later.
When using the UI you must enter the database credentials for the source database and, if you are migrating files, the path to the public and private files.

These values can now be set in settings.php so they do not need to be re-entered every time you perform an upgrade.

$settings['migrate_source_connection'] = '';
$settings['migrate_source_version'] = '';
$settings['migrate_file_public_path'] = '';
$settings['migrate_file_private_path'] = '';

where

  • migrate_source_version - The version of the source database. This can be '6' or '7'. Defaults to '7'.
  • migrate_source_connection - The key in the $databases array for the source site database.
  • migrate_file_public_path - The location of the source Drupal 6 or Drupal 7 public files. This can be a local file directory containing the source Drupal 6 or Drupal 7 site (e.g /var/www/docroot), or the site address (e.g http://example.com).
  • migrate_file_private_path - The location of the source Drupal 7 private files. This can be a local file directory containing the source Drupal 7 site (e.g /var/www/docroot), or empty to use the same value as Public files directory.
Impacts: 
Site builders, administrators, editors

Comments

ressa’s picture

For an example of which values to use in DDEV, see Upgrade using web browser.