mycodeself / mongo-migrate-ts

Run mongodb migrations easy from TypeScript
MIT License
87 stars 28 forks source link

1.5.0 changes default load order of migrations #113

Closed jrh-exacta closed 2 months ago

jrh-exacta commented 4 months ago

Upgrading to 1.5.0 changes the default load behavior of the migrations, my migrations are set up as so.

    └── build/
        └── mongo/
            └── migrations/
                ├── 1713446102472_create_clientTelemetry.js
                ├── 1713804829014_AddClientTelemetryLevelIndex.js
                ├── 1714121370285_add_percentage_to_pools.js
                ...

with 1.4.0 the migrations are loaded in 1713446102472_create_clientTelemetry.js->17113804829014_AddClientTelemetryLevelIndex.js->1714121370285_add_percentage_to_pools.js

now with 1.5.0 the migrations loaded in 1714121370285_add_percentage_to_pools.js->1713804829014_AddClientTelemetryLevelIndex.js->1713446102472_create_clientTelemetry.js

This breaks any migration set up I have had in the past. I could not see a way to make the glob options reverse the order? Is that possible?

mycodeself commented 2 months ago

:tada: This issue has been resolved in version 1.6.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

mycodeself commented 2 months ago

Hey, this should be fixed in 1.6.2, could you try and let me know if the problem persists?

Thanks!