diff --git a/packages/strapi-hook-knex/lib/index.js b/packages/strapi-hook-knex/lib/index.js index d1bcf92f45..b71b7ecce6 100644 --- a/packages/strapi-hook-knex/lib/index.js +++ b/packages/strapi-hook-knex/lib/index.js @@ -156,7 +156,11 @@ module.exports = strapi => { fs.mkdirSync(fileDirectory); } - options.log = undefined; + // Disable warn log + // .returning() is not supported by sqlite3 and will not have any effect. + options.log = { + warn: () => {} + }; break; }