Initial migration with CLI can't infer directory #482
Unanswered
ignaciojcano
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Just set up following the example of sequelize-typescript, but when creating the first migration using the CLI (just like in the example), I kept getting
Error: Couldn't infer a directory to generate migration file in. Pass --folder explicitly
. If you pass in the folder directly it works, but kinda expected it to infer it from the migrations configuration.Currently if
--folder
is not passed in, it will try to grab the last migration that exists and use that one's dirname (https://github.com/sequelize/umzug/blob/master/src/umzug.ts#L393)Two options come to mind:
Anyways, its pretty mild, everything else so far has been 👍
Beta Was this translation helpful? Give feedback.
All reactions