Skip to content

Commit

Permalink
FIX Make UTF-MB4 collation / charset default opt-in
Browse files Browse the repository at this point in the history
This was originally intended as an opt-in change in Recipe 4.7.0, but was
making its way into projects during upgrades due to its placement in a
separate config file.
  • Loading branch information
Garion Herman committed Jan 12, 2021
1 parent 711b606 commit 03e6abb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
8 changes: 0 additions & 8 deletions app/_config/database.yml

This file was deleted.

11 changes: 11 additions & 0 deletions app/_config/mysite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,14 @@ Name: myproject
---
SilverStripe\Core\Manifest\ModuleManifest:
project: app

# UTF8MB4 has limited support in older MySQL versions.
# Remove this configuration if you experience issues.
---
Name: myproject-database
---
SilverStripe\ORM\Connect\MySQLDatabase:
connection_charset: utf8mb4
connection_collation: utf8mb4_unicode_ci
charset: utf8mb4
collation: utf8mb4_unicode_ci

0 comments on commit 03e6abb

Please sign in to comment.