Skip to content
Snippets Groups Projects
Commit 49ed670a authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-inventories/arocom#2866 Add uft8mb4 support for Drupal 7 sites

parent 188ed74c
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,10 @@ $databases = array (
'host' => '127.0.0.1',
'port' => '{{ item.db.port|default("3306") }}',
'prefix' => '{{ item.db.prefix|default("") }}',
{% if item.db.utf8mb4|default(false) %}
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci',
{% endif %}
),
),
{% for db in item.db.extra|default([]) %}
......@@ -22,6 +26,10 @@ $databases = array (
'host' => '127.0.0.1',
'port' => '{{ db.port|default("3306") }}',
'prefix' => '{{ db.prefix|default("") }}',
{% if item.db.utf8mb4|default(false) %}
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_general_ci',
{% endif %}
),
),
{% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment