drupalddev

How to pass a database prefix to DDEV?


One of the DDEV sites I manage uses a database that includes a prefix. The default behavior for DDEV is to recreate the settings.ddev.php on every start. But that obviously overwrites anything added, purging any manual addition of the prefix.

Is the assumed solution to stop DDEV from overwriting the file? Or to create another settings file (like settings.local.php) to override what's been overridden? Or am I missing something?

This just seems like something that would exist as a simple variable in the config to generate a more accurate settings.ddev.php file. Thanks!


Solution

  • There are a few straightforward answers: