Merge pull request #13007 from medusajs/fix-script-migrations-order
fix: fix script migrations order
This commit is contained in:
5
.changeset/loud-terms-share.md
Normal file
5
.changeset/loud-terms-share.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@medusajs/framework": patch
|
||||
---
|
||||
|
||||
fix(framework): fix script migrations order
|
||||
@@ -139,6 +139,7 @@ export abstract class Migrator {
|
||||
cwd: basePath,
|
||||
ignore: ["**/index.{js,ts}", "**/*.d.ts"],
|
||||
})
|
||||
scriptFiles.sort((a, b) => a.localeCompare(b))
|
||||
|
||||
if (!scriptFiles?.length) {
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user