fix: fix script migrations order
This commit is contained in:
@@ -139,6 +139,7 @@ export abstract class Migrator {
|
|||||||
cwd: basePath,
|
cwd: basePath,
|
||||||
ignore: ["**/index.{js,ts}", "**/*.d.ts"],
|
ignore: ["**/index.{js,ts}", "**/*.d.ts"],
|
||||||
})
|
})
|
||||||
|
scriptFiles.sort((a, b) => a.localeCompare(b))
|
||||||
|
|
||||||
if (!scriptFiles?.length) {
|
if (!scriptFiles?.length) {
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user