diff --git a/app/_config/database.yml b/app/_config/database.yml deleted file mode 100644 index 8c8075b..0000000 --- a/app/_config/database.yml +++ /dev/null @@ -1,8 +0,0 @@ ---- -Name: myproject-database ---- -SilverStripe\ORM\Connect\MySQLDatabase: - connection_charset: utf8mb4 - connection_collation: utf8mb4_unicode_ci - charset: utf8mb4 - collation: utf8mb4_unicode_ci diff --git a/app/_config/mysite.yml b/app/_config/mysite.yml index 59c81b9..f786c18 100644 --- a/app/_config/mysite.yml +++ b/app/_config/mysite.yml @@ -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