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)
|
# 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
|
# MAMP users should also turn on Allow network access to MySQL otherwise MySQL might not be accessible
|
||||||
port: 3306
|
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
|
# 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'
|
# If the MySQL server runs on the same server as Mailtrain, use 'local'
|
||||||
timezone: local
|
timezone: local
|
||||||
multipleStatements: true
|
|
||||||
|
|
||||||
verp:
|
verp:
|
||||||
# Enable to start an MX server that detects bounced messages using VERP
|
# Enable to start an MX server that detects bounced messages using VERP
|
||||||
|
|
|
@ -10,6 +10,9 @@ const knex = require('knex')({
|
||||||
connection: {
|
connection: {
|
||||||
...config.mysql,
|
...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
|
// 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
|
// does not work well with assigning these values in UTC and handling them as if in UTC
|
||||||
dateStrings: [
|
dateStrings: [
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const config = require('./config');
|
let config = require('./config');
|
||||||
|
|
||||||
|
config.mysql.charset="utf8mb4";
|
||||||
|
config.mysql.multipleStatements=true;
|
||||||
|
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
client: 'mysql',
|
client: 'mysql',
|
||||||
|
|
|
@ -233,8 +233,6 @@ www:
|
||||||
|
|
||||||
mysql:
|
mysql:
|
||||||
password: "$mysqlPassword"
|
password: "$mysqlPassword"
|
||||||
charset: utf8mb4
|
|
||||||
multipleStatements: true
|
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue