We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90d3c65 commit c828e33Copy full SHA for c828e33
packages/payload/src/database/migrations/readMigrationFiles.ts
@@ -29,7 +29,7 @@ export const readMigrationFiles = async ({
29
.readdirSync(payload.db.migrationDir)
30
.sort()
31
.filter((f) => {
32
- return (f.endsWith('.ts') || f.endsWith('.js')) && !f.includes('index.')
+ return (f.endsWith('.ts') || f.endsWith('.js')) && f !== 'index.js' && f !== 'index.ts'
33
})
34
.map((file) => {
35
return path.resolve(payload.db.migrationDir, file)
0 commit comments