Remove charset and multipleStatements from config file, added hardcoded

This commit is contained in:
joker-x 2020-08-26 10:20:26 +02:00
parent 1b4afbca81
commit f610f93fa7
4 changed files with 9 additions and 6 deletions

View file

@ -10,7 +10,10 @@ const knex = require('knex')({
connection: {
...config.mysql,
// DATE and DATETIME types contain no timezone info. The MySQL driver tries to interpret them w.r.t. to local time, which
charset: utf8mb4,
multipleStatements: true,
// DATE and DATETIME types contain no timezone info. The MySQL driver tries to interpret them w.r.t. to local time, which
// does not work well with assigning these values in UTC and handling them as if in UTC
dateStrings: [
'DATE',