zakodium/adonis-mongodb

Normalize "name" of migration documents

targos opened this issue · 0 comments

Currently the name is the full absolute path to the file on disk. This is a problem because the status of the migration depends on where the application is located.
I propose that we only use the file name, and add a check to avoid multiple identical names (in case multiple migration folders are configured)