mirror of
https://github.com/directus/directus.git
synced 2026-01-28 18:38:10 -05:00
Add warning when DB_CHARSET isn't explicitly configured (#10778)
* Add warning when DB_CHARSET isn't explicitly configured Fixes #10556 * Improve messaging
This commit is contained in:
@@ -92,6 +92,10 @@ export default function getDatabase(): Knex {
|
||||
merge(knexConfig, { connection: { options: { useUTC: false } } });
|
||||
}
|
||||
|
||||
if (env.DB_CLIENT === 'mysql' && !env.DB_CHARSET) {
|
||||
logger.warn(`DB_CHARSET hasn't been set. Please make sure DB_CHARSET matches your database's collation.`);
|
||||
}
|
||||
|
||||
database = knex(knexConfig);
|
||||
|
||||
const times: Record<string, number> = {};
|
||||
|
||||
Reference in New Issue
Block a user