You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The condition: path.extname(file) === migrationExt will resolve by '.ts' === '.migration.ts' and return false.
Describe the solution you'd like
Maybe this has not been implemented for some purposes, but it would be great if we want to keep consistency in our project filenames or event custom them. Otherwise, I have to manually rename each of my migration file myself.
Describe alternatives you've considered
The simple way, I guess, will be to use a cute reg expression to test if the filename match the migrationExt.
Is your feature request related to a problem? Please describe.
I tried to use a multi dotted extension filename in my config, such as:
But the app couldn't retrieve them when using
why ?
It appears this is due to the filter condition returned in migrationDir.getFilenames().
The condition:
path.extname(file) === migrationExt
will resolve by'.ts' === '.migration.ts'
and return false.Describe the solution you'd like
Maybe this has not been implemented for some purposes, but it would be great if we want to keep consistency in our project filenames or event custom them. Otherwise, I have to manually rename each of my migration file myself.
Describe alternatives you've considered
The simple way, I guess, will be to use a cute reg expression to test if the filename match the
migrationExt
.or in one line (which is uglier)
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: