Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By sun on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Introduced in version:
8.0
Issue links:
Description:
The "Set up database" configuration form of the Drupal installer still used a 'db_prefix'
form input name, even though the database connection info array key for the table prefix is 'prefix'
since Drupal 7.
If your custom code manually submits the database configuration form of the Drupal installer, you need to update the passed form values accordingly:
Drupal 7
$parameters['forms']['install_settings_form']['mysql']['db_prefix'] = 'custom_';
// ...
install_drupal($parameters);
Drupal 8
$parameters['forms']['install_settings_form']['mysql']['prefix'] = 'custom_';
// ...
install_drupal($parameters);
Impacts:
Site builders, administrators, editors