Skip to content

Error thrown on SequelizeStorage construction #557

Closed Answered by mmkal
mrghosti3 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, I get an error while calling SequelizeStorage constructor:

Error: One of "sequelize" or "model" storage option is required
    at new SequelizeStorage (/ddisk/projects/testmig/node_modules/umzug/lib/storage/sequelize.js:15:19)

I am creating it using just like the example in master branch shows:

//my snippet
const storage = new SequelizeStorage({ sq });

Maybe I’m missing something, but it seems you aren’t creating it like the example. You’re passing { sq } to the constructor and the example passes { sequelize } - that’s what the error message is saying too. If your sequelize instance is named sq, you could use new SequelizeStorage({ sequelize: sq }).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mrghosti3
Comment options

Answer selected by mrghosti3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants