Fix unnecessary warning about migrations from knex

cshd
Dragory 2020-08-13 02:44:42 +03:00
parent 37c523cd04
commit 1f5faaab5b
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 12 additions and 1 deletions

View File

@ -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);
},
},
});