Merge branch 'develop' into future-2024-03-23

This commit is contained in:
dakkar 2024-03-24 11:26:36 +00:00
commit beb00789df
6 changed files with 66 additions and 43 deletions

View file

@ -11,7 +11,11 @@ export default new DataSource({
username: config.db.user,
password: config.db.pass,
database: config.db.db,
extra: config.db.extra,
extra: {
...config.db.extra,
// migrations may be very slow, give them longer to run (that 10*1000 comes from postgres.ts)
statement_timeout: (config.db.extra?.statement_timeout ?? 1000 * 10) * 10,
},
entities: entities,
migrations: ['migration/*.js'],
});