[] 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.
This commit is contained in:
Fabio Manganiello 2025-04-18 22:46:00 +02:00
parent a9dc63c289
commit 0fa13d6ec2
Signed by: blacklight
GPG key ID: D90FBA7F76362774

View file

@ -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;