Skip to content

Commit

Permalink
Merge pull request #3453 from owid/knex-utf8mb4
Browse files Browse the repository at this point in the history
🐛 use `utf8mb4` for knex connections
  • Loading branch information
ikesau authored Apr 5, 2024
2 parents 98cced2 + f1d2a6b commit 4d398a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ export const knexInstance = (): Knex<any, any[]> => {
password: GRAPHER_DB_PASS,
database: GRAPHER_DB_NAME,
port: GRAPHER_DB_PORT,
charset: "utf8mb4",
typeCast: (field: any, next: any) => {
if (field.type === "TINY" && field.length === 1) {
return field.string() === "1" // 1 = true, 0 = false
Expand Down

0 comments on commit 4d398a7

Please sign in to comment.