fix(cli): handle migration history entries without file extensions correctly

...even when the migration file names include periods in their names.
This commit is contained in:
Joakim Carlstein 2024-01-23 11:32:58 +01:00 committed by Joakim Carlstein
parent ea327bbc49
commit b56b6daf73
5 changed files with 168 additions and 61 deletions

View file

@ -0,0 +1,5 @@
---
'@emigrate/cli': patch
---
Handle migration history entries without file extensions for migration files with periods in their names that are not part of the file extension. Previously Emigrate would attempt to re-run these migrations, but now it will correctly ignore them. E.g. the migration history contains an entry for "migration.file.name" and the migration file is named "migration.file.name.js" it will not be re-run.