Fix unnecessary warning about migrations from knex
parent
37c523cd04
commit
1f5faaab5b
13
src/knex.js
13
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);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue