mirror of
https://github.com/opdavies/build-configs.git
synced 2025-01-23 02:27:33 +00:00
Oliver Davies
4d034d9ba2
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 ```
6 lines
172 B
Twig
6 lines
172 B
Twig
{% for database in database.extra_databases %}
|
|
CREATE DATABASE {{ database }};
|
|
GRANT ALL PRIVILEGES ON {{ database }}.* TO drupal@'%' IDENTIFIED BY 'drupal';
|
|
|
|
{% endfor %}
|