File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,10 @@ services:
7
7
MARIADB_DATABASE : ushahidi
8
8
MARIADB_USER : ushahidi
9
9
MARIADB_PASSWORD : ushahidi
10
+ LANG : C.UTF_8
10
11
command :
11
12
- --character-set-server=utf8mb4
12
- - --collation-server=utf8mb4_unicode_ci
13
+ - --collation-server=utf8mb4_unicode_520_ci
13
14
# mysql 8.0
14
15
# - --default-authentication-plugin=mysql_native_password
15
16
ports :
Original file line number Diff line number Diff line change 15
15
'user ' => getenv ('DB_USERNAME ' ),
16
16
'pass ' => getenv ('DB_PASSWORD ' ),
17
17
'unix_socket ' => getenv ('DB_SOCKET ' ),
18
- 'charset ' => 'utf8 ' ,
18
+ // afaik, phinx doesn't really use this for table creation in v0.11.7
19
+ // apparently it's used as a connection parameter
20
+ 'charset ' => 'utf8mb4 ' ,
21
+ // phinx guesses the charset to create the table with from this
22
+ // defaults to MariaDB's utf8mb4_unicode_520_ci, which is not supported by MySQL
23
+ // for MySQL you would want to use utf8mb4_0900_ai_ci (MySQL 8.0.17+)
24
+ // if you are stuck with MySQL 5.7, you can use utf8mb4_unicode_ci
25
+ 'collation ' => getenv ('DB_COLLATION ' ) ?: 'utf8mb4_unicode_520_ci '
19
26
],
20
27
]
21
28
];
You can’t perform that action at this time.
0 commit comments