From 8f8f75f3c7e96050b215cdba2c40178b61baaeb1 Mon Sep 17 00:00:00 2001 From: Darren Schnare Date: Mon, 14 Aug 2017 18:47:23 -0400 Subject: [PATCH] fix(knex): Fix knex + sql server issues when using authentication generator (#257) --- packages/generator-feathers/generators/connection/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/generator-feathers/generators/connection/index.js b/packages/generator-feathers/generators/connection/index.js index c17297fdfb..1a9e837ad8 100644 --- a/packages/generator-feathers/generators/connection/index.js +++ b/packages/generator-feathers/generators/connection/index.js @@ -267,8 +267,10 @@ module.exports = class ConnectionGenerator extends Generator { if (database === 'rethinkdb') { template = 'rethinkdb.js'; + } else if (database === 'mssql' && adapter === 'sequelize') { + template = `${adapter}-mssql.js`; } else if (adapter && adapter !== 'nedb') { - template = database === 'mssql' ? `${adapter}-mssql.js` : `${adapter}.js`; + template = `${adapter}.js`; } if (template) {