Merge pull request #6691 from opf/fix/mysql-encoding-error

Don't enforce utf8mb4 encoding for MySQL 5.7
pull/6696/head
Markus Kahl 6 years ago committed by GitHub
commit 9289275755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      config/initializers/check_mysql_encoding.rb

@ -52,12 +52,18 @@ if OpenProject::Database.mysql?
#{Rails.env}:
* encoding: #{expected} *
* in config/database.yml *
* in config/database.yml. *
Otherwise, you WILL run into encoding issue when using 4 byte
* UTF-8 characters since utf8 encoding in MySQL doesn't support them. *
* If you have been running utf8 in the past, please see this guide *
on how to convert your database:
* https://mathiasbynens.be/notes/mysql-utf8mb4 *
* * * * * * * * * * * * * * * * * * * * * * * * *
MESSAGE
raise message
warn message
end
end

Loading…
Cancel
Save