diff --git a/backend/models/schemas/index.js b/backend/models/schemas/index.js index d66c90a2..bdfff31a 100644 --- a/backend/models/schemas/index.js +++ b/backend/models/schemas/index.js @@ -8,7 +8,9 @@ const basename = path.basename(__filename); const config = require(__dirname + '/../../config/config.js'); const db = {}; -let sequelize = new Sequelize(config.database, config.username, config.password, config); +let sequelize = new Sequelize(config.database, config.username, config.password, {config, dialect: 'mysql', +dialectModule: require('mysql2')}); + fs .readdirSync(__dirname)