Skip to content

Commit

Permalink
Merge pull request #33 from amazeeio/charset-collations
Browse files Browse the repository at this point in the history
Explicitly set charset and collation for Drupal sites
  • Loading branch information
tobybellwood authored Sep 4, 2024
2 parents 572f5fc + f304206 commit 5ff908d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/settings.lagoon.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
}

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

0 comments on commit 5ff908d

Please sign in to comment.