Set encrypt to true on Sequelize-cli migrate for MSSQL

后端 未结 1 460
深忆病人
深忆病人 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条回答
  •  不要未来只要你来
    2021-01-18 18:01

    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)
提交回复
热议问题