From 0fa13d6ec2bb0fa6286e259e29b2149fbfe30671 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello <fabio@manganiello.tech> Date: Fri, 18 Apr 2025 22:46:00 +0200 Subject: [PATCH] [#1] Only parse .js files in umzug migration. As pointed out in the issue, it's not guaranteed that Node will only pick *.js - depending on where it's launched and in which state. This will mean that db migrations can no longer be applied while developing, but it's a good compromise when weighted against consistent ease of use. --- src/db/Migrations.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/Migrations.ts b/src/db/Migrations.ts index 2c8cd3a..3f252c4 100644 --- a/src/db/Migrations.ts +++ b/src/db/Migrations.ts @@ -9,7 +9,7 @@ class Migrations { storage: new SequelizeStorage({ sequelize: db }), context: db.getQueryInterface(), migrations: { - glob: '**/db/migrations/*.*s', + glob: '**/db/migrations/*.js', }, logger: console, }) as Umzug;