summaryrefslogtreecommitdiffstats
path: root/config/database.yml.example
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-09-12 10:02:08 +0000
committerGo MAEDA <maeda@farend.jp>2019-09-12 10:02:08 +0000
commit69dcf527358b7a3ecaa92098048d40710b245211 (patch)
tree57e6df9d013c04c9c458efd007ed1decfda7474e /config/database.yml.example
parent9d2c39009d450b57510e5d2d9e04511a2069377b (diff)
downloadredmine-69dcf527358b7a3ecaa92098048d40710b245211.tar.gz
redmine-69dcf527358b7a3ecaa92098048d40710b245211.zip
Update default database config for MySQL to support 4 byte characters (emoji) (#31921).
Patch by Marius BALTEANU and Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18454 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/database.yml.example')
-rw-r--r--config/database.yml.example11
1 files changed, 7 insertions, 4 deletions
diff --git a/config/database.yml.example b/config/database.yml.example
index 57bc51605..727b4d89b 100644
--- a/config/database.yml.example
+++ b/config/database.yml.example
@@ -1,4 +1,4 @@
-# Default setup is given for MySQL with ruby1.9.
+# Default setup is given for MySQL 5.7.7 or later.
# Examples for PostgreSQL, SQLite3 and SQL Server can be found at the end.
# Line indentation must be 2 spaces (no tabs).
@@ -8,7 +8,8 @@ production:
host: localhost
username: root
password: ""
- encoding: utf8
+ # Use "utf8" instead of "utfmb4" for MySQL prior to 5.7.7
+ encoding: utf8mb4
development:
adapter: mysql2
@@ -16,7 +17,8 @@ development:
host: localhost
username: root
password: ""
- encoding: utf8
+ # Use "utf8" instead of "utfmb4" for MySQL prior to 5.7.7
+ encoding: utf8mb4
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
@@ -27,7 +29,8 @@ test:
host: localhost
username: root
password: ""
- encoding: utf8
+ # Use "utf8" instead of "utfmb4" for MySQL prior to 5.7.7
+ encoding: utf8mb4
# PostgreSQL configuration example
#production: