Skip to content

Commit 5ff908d

Browse files
authored
Merge pull request #33 from amazeeio/charset-collations
Explicitly set charset and collation for Drupal sites
2 parents 572f5fc + f304206 commit 5ff908d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

assets/settings.lagoon.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030
}
3131

3232
// Lagoon database connection.
33+
// If you require a specific charset or collation for your site,
34+
// copy, update and add this paragraph to your all.settings.php file.
3335
if (getenv('LAGOON')) {
3436
$databases['default']['default'] = [
3537
'driver' => 'mysql',
@@ -38,6 +40,8 @@
3840
'password' => getenv('MARIADB_PASSWORD') ?: 'drupal',
3941
'host' => getenv('MARIADB_HOST') ?: 'mariadb',
4042
'port' => getenv('MARIADB_PORT') ?: 3306,
43+
'charset' => getenv('MARIADB_CHARSET') ?: 'utf8mb4',
44+
'collation' => getenv('MARIADB_COLLATION') ?: 'utf8mb4_general_ci',
4145
'prefix' => '',
4246
];
4347
}

0 commit comments

Comments
 (0)