From 4e652ad58d548598eb3f721408373ca8adc56a48 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 26 Aug 2024 11:27:37 +0800 Subject: [PATCH] =?UTF-8?q?conf:=20=E9=85=8D=E7=BD=AE=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=BF=9E=E6=8E=A5,=20=E8=A7=A3=E5=86=B3=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/config/db.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/config/db.js b/server/config/db.js index 5a6199b..a054bdb 100644 --- a/server/config/db.js +++ b/server/config/db.js @@ -8,10 +8,11 @@ const { Sequelize, DataTypes, Op } = require('sequelize'); const testDB = new Sequelize('hotel_hub', 'admin', 'admin', { host: 'localhost', dialect: 'mysql', - operatorsAliases: false, + // operatorsAliases: false, + // operatorsAliases: 0, dialectOptions: { charset: 'utf8mb4', - collate: 'utf8mb4_unicode_ci', + // collate: 'utf8mb4_unicode_ci', supportBigNumbers: true, bigNumberStrings: true, }, @@ -28,10 +29,10 @@ const testDB = new Sequelize('hotel_hub', 'admin', 'admin', { const DB = new Sequelize('hotel_hub_p', 'admin', 'admin', { host: 'localhost', dialect: 'mysql', - operatorsAliases: false, + // operatorsAliases: false, dialectOptions: { charset: 'utf8mb4', - collate: 'utf8mb4_unicode_ci', + // collate: 'utf8mb4_unicode_ci', supportBigNumbers: true, bigNumberStrings: true, },