diff --git a/server/managers/MigrationManager.js b/server/managers/MigrationManager.js index beaf8a4d..dc2f9235 100644 --- a/server/managers/MigrationManager.js +++ b/server/managers/MigrationManager.js @@ -130,7 +130,7 @@ class MigrationManager { async initUmzug(umzugStorage = new SequelizeStorage({ sequelize: this.sequelize })) { // This check is for dependency injection in tests - const files = (await fs.readdir(this.migrationsDir)).map((file) => path.join(this.migrationsDir, file)) + const files = (await fs.readdir(this.migrationsDir)).filter((file) => !file.startsWith('.')).map((file) => path.join(this.migrationsDir, file)) const parent = new Umzug({ migrations: {