Skip to content

Commit

Permalink
Merge branch 'develop' into USH-1624
Browse files Browse the repository at this point in the history
  • Loading branch information
Mh-Asmi authored Nov 27, 2024
2 parents 0429d59 + 250a12f commit a39d422
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ services:
MARIADB_DATABASE: ushahidi
MARIADB_USER: ushahidi
MARIADB_PASSWORD: ushahidi
LANG: C.UTF_8
command:
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
- --collation-server=utf8mb4_unicode_520_ci
# mysql 8.0
# - --default-authentication-plugin=mysql_native_password
ports:
Expand Down
9 changes: 8 additions & 1 deletion phinx.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@
'user' => getenv('DB_USERNAME'),
'pass' => getenv('DB_PASSWORD'),
'unix_socket' => getenv('DB_SOCKET'),
'charset' => 'utf8',
// afaik, phinx doesn't really use this for table creation in v0.11.7
// apparently it's used as a connection parameter
'charset' => 'utf8mb4',
// phinx guesses the charset to create the table with from this
// defaults to MariaDB's utf8mb4_unicode_520_ci, which is not supported by MySQL
// for MySQL you would want to use utf8mb4_0900_ai_ci (MySQL 8.0.17+)
// if you are stuck with MySQL 5.7, you can use utf8mb4_unicode_ci
'collation' => getenv('DB_COLLATION') ?: 'utf8mb4_unicode_520_ci'
],
]
];

0 comments on commit a39d422

Please sign in to comment.