Can I change the DDEV default database version for Drupal?

53 Views Asked by At

When I run ddev config to create a new drupal10 project, the created config.yaml file contains

name: drupal
type: drupal10
docroot: web
php_version: "8.1"
webserver_type: nginx-fpm
xdebug_enabled: false
additional_hostnames: []
additional_fqdns: []
database:
    type: mariadb
    version: "10.4"
use_dns_when_possible: true
composer_version: "2"
web_environment: []

Is there a way to make it so that the default database version when running the command is

database:
    type: mariadb
    version: "10.11"

Essentially, I don't want to have to manually set the database version in the config.yaml file each time I create a project.

I tried changing ~/.ddev/global_config.yaml to have that as well, but that didn't change the behavior. I guess it's not a valid global setting? If I forget to change the DB version during project setup, then I have to drop the database, reconfigure, and re-setup the database to have the newer 10.11 version. I'd like to be able to set the default.

0

There are 0 best solutions below