Initialise SequelizeStorage #362
Answered
by
mmkal
mittalyashu
asked this question in
Q&A
-
I tried other ways than mentioned in the docs, none of them worked. const path = require("path");
const { Umzug, SequelizeStorage } = require("umzug");
const database = require(".");
const context = database.getQueryInterface();
const unzug = new Umzug({
migrations: {
path: path.resolve(__dirname, "migrations"),
pattern: /\.js$/
},
context,
storage: new SequelizeStorage({ database })
});
module.exports = unzug; The above follows the docs says, in return shows an error |
Beta Was this translation helpful? Give feedback.
Answered by
mmkal
Oct 30, 2020
Replies: 1 comment 3 replies
-
@mittalyashu which version of umzug are you using? |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
mmkal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mittalyashu which version of umzug are you using?