mongo-migrate-ts icon indicating copy to clipboard operation
mongo-migrate-ts copied to clipboard

1.5.0 changes default load order of migrations

Open jrh-exacta opened this issue 8 months ago • 0 comments

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?

jrh-exacta avatar Jun 19 '24 21:06 jrh-exacta