Merge pull request #13007 from medusajs/fix-script-migrations-order

fix: fix script migrations order
This commit is contained in:
Pedro Guzman authored and GitHub committed 2025-07-21 20:31:22 +02:00
commit 44ee9a06ba
2 files changed
+6

No files matched your search

+5
View 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