Remove charset and multipleStatements from config file, added hardcoded
This commit is contained in:
parent
1b4afbca81
commit
f610f93fa7
4 changed files with 9 additions and 6 deletions
|
@ -124,11 +124,9 @@ mysql:
|
|||
# Some installations, eg. MAMP can use a different port (8889)
|
||||
# MAMP users should also turn on Allow network access to MySQL otherwise MySQL might not be accessible
|
||||
port: 3306
|
||||
charset: utf8mb4
|
||||
# The timezone configured on the MySQL server. This can be 'local', 'Z', or an offset in the form +HH:MM or -HH:MM
|
||||
# If the MySQL server runs on the same server as Mailtrain, use 'local'
|
||||
timezone: local
|
||||
multipleStatements: true
|
||||
|
||||
verp:
|
||||
# Enable to start an MX server that detects bounced messages using VERP
|
||||
|
|
|
@ -10,6 +10,9 @@ const knex = require('knex')({
|
|||
connection: {
|
||||
...config.mysql,
|
||||
|
||||
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: [
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
const config = require('./config');
|
||||
let config = require('./config');
|
||||
|
||||
config.mysql.charset="utf8mb4";
|
||||
config.mysql.multipleStatements=true;
|
||||
|
||||
|
||||
module.exports = {
|
||||
client: 'mysql',
|
||||
|
|
|
@ -233,8 +233,6 @@ www:
|
|||
|
||||
mysql:
|
||||
password: "$mysqlPassword"
|
||||
charset: utf8mb4
|
||||
multipleStatements: true
|
||||
|
||||
redis:
|
||||
enabled: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue