From 13dd4edd6a6eef333a2be55a94cb6d5bffe4a19e Mon Sep 17 00:00:00 2001 From: advplyr Date: Mon, 14 Oct 2024 14:46:55 -0500 Subject: [PATCH] Fix:Ignore dot files in migrations folder #3510 --- server/managers/MigrationManager.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {