Not accepting migrations custom path #363
-
Even after passing a custom path (tried both ways using path module, relative path) it is settings default path as const unzug = new Umzug({
migrations: {
path: "./database/migrations",
pattern: /\.js$/
},
context,
storage: new CustomStorage()
}); Error
Or sometimes
Info File structure
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Did you try passing an absolute path to |
Beta Was this translation helpful? Give feedback.
-
Yes, it said out this error
|
Beta Was this translation helpful? Give feedback.
-
Are you able to reproduce the error with a minimal setup? Hard to say otherwise what's wrong. Failing that, you could try adding some log statements to |
Beta Was this translation helpful? Give feedback.
-
@mittalyashu it looks like you're mixing up v2 and v3 syntax. There are some breaking changes in the v3 beta. Please see the note about v2 in the readme. There are a few more changes in the pipeline, likely nothing major/breaking, but if you prefer to stick with v2 until v3 is fully stable, follow the link to the v2.x branch, or npm: https://www.npmjs.com/package/umzug/v/2.3.0 |
Beta Was this translation helpful? Give feedback.
@mittalyashu it looks like you're mixing up v2 and v3 syntax. There are some breaking changes in the v3 beta. Please see the note about v2 in the readme. There are a few more changes in the pipeline, likely nothing major/breaking, but if you prefer to stick with v2 until v3 is fully stable, follow the link to the v2.x branch, or npm: https://www.npmjs.com/package/umzug/v/2.3.0