From 1f5faaab5b61b03a16d960e5705e176db94c1789 Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Thu, 13 Aug 2020 02:44:42 +0300 Subject: [PATCH] Fix unnecessary warning about migrations from knex --- src/knex.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/knex.js b/src/knex.js index 35c8cb5..ff1a9cd 100644 --- a/src/knex.js +++ b/src/knex.js @@ -1,2 +1,13 @@ const config = require("./cfg"); -module.exports = require("knex")(config.knex); +module.exports = require("knex")({ + ...config.knex, + log: { + warn(message) { + if (message.startsWith("FS-related option specified for migration configuration")) { + return; + } + + console.warn(message); + }, + }, +});