Skip to content

Commit 44ee9a0

Browse files
authored
Merge pull request medusajs#13007 from medusajs/fix-script-migrations-order
fix: fix script migrations order
2 parents 0a43009 + 43fb06e commit 44ee9a0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/loud-terms-share.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/framework": patch
3+
---
4+
5+
fix(framework): fix script migrations order

packages/core/framework/src/migrations/migrator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export abstract class Migrator {
139139
cwd: basePath,
140140
ignore: ["**/index.{js,ts}", "**/*.d.ts"],
141141
})
142+
scriptFiles.sort((a, b) => a.localeCompare(b))
142143

143144
if (!scriptFiles?.length) {
144145
continue

0 commit comments

Comments
 (0)