feat: allow for adding extra databases
Allow for declaring extra databases that should be created when the
project is first started. This is done by adding an `extra_databases`
key to `database`, containing a list of database names.
```yaml
database:
type: mariadb
version: 10
extra_databases:
- tinhat
- freshcover
```
This commit is contained in:
parent
692151d26c
commit
4d034d9ba2
4 changed files with 29 additions and 1 deletions
5
templates/extra-databases.sql.twig
Normal file
5
templates/extra-databases.sql.twig
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{% for database in database.extra_databases %}
|
||||
CREATE DATABASE {{ database }};
|
||||
GRANT ALL PRIVILEGES ON {{ database }}.* TO drupal@'%' IDENTIFIED BY 'drupal';
|
||||
|
||||
{% endfor %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue