Set encrypt to true on Sequelize-cli migrate for MSSQL

后端 未结 1 452
深忆病人
深忆病人 2021-01-18 17:27

I\'m trying to run sequelize-cli, specifically npx sequelize db:migrate.

I\'ve created a config file in config/config.js which looks like t

相关标签:
1条回答
  • This should fix the issue,

    module.exports = {
      development: {
        username: "USER",
        password: "PASSWORD",
        database: "DB_NAME",
        host: "HOST.net",
        dialect: 'mssql',
        dialectOptions: { 
          options: {
            encrypt: true
          }
        }
      } 
    };
    
    0 讨论(0)
提交回复
热议问题