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

fix: fix script migrations order
This commit is contained in:
Pedro Guzman
2025-07-21 20:31:22 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/framework": patch
---
fix(framework): fix script migrations order

View File

@@ -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