seppevs / migrate-mongo

A database migration tool for MongoDB in Node
MIT License
931 stars 166 forks source link

Remove the extension from the filename, or provide an option to do so. #414

Closed dphrag closed 1 year ago

dphrag commented 2 years ago

Is your feature request related to a problem? Please describe. If a project uses Javascript and then later converts to Typescript, the storage of the file extension in the database for checking if a migration was run creates inconsistencies.

Describe the solution you'd like There's no particular reason the extension should have been included in the stored filename IMO, however it'll be hard to remove for compatibility. Suggest adding an option to the migration config (e.g. "--ignore-extension") that ignores the extension that is stored when checking if the file was run.

seppevs commented 1 year ago

Sorry, won't do. I want to keep this tool as simple as possible, without too many bells and whistles.