feat: opt-in to the new database credentials

Allow for changing the default database name, username and password from
`drupal` to `app` by enabling the
`experimental.useNewDatabaseCredentials` feature flag in a project's
`build.yaml` file.

Refs: OD-27
This commit is contained in:
Oliver Davies 2023-04-16 20:22:45 +01:00
parent bb4f630bd5
commit fb63a6c245
3 changed files with 18 additions and 0 deletions

View file

@ -14,7 +14,13 @@ export DOCKER_WEB_VOLUME=.:{{ project_root }}
{% endif %}
{% if "drupal-project" == type %}
{% if experimental.useNewDatabaseCredentials %}
export MYSQL_DATABASE=app
export MYSQL_PASSWORD=app
export MYSQL_USER=app
{% else %}
export MYSQL_DATABASE=drupal
export MYSQL_PASSWORD=drupal
export MYSQL_USER=drupal
{% endif %}
{% endif %}