merge: longer statement_timeout
for migrations - fixes 450 (!466)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/466 Approved-by: Luna <her@mint.lgbt> Approved-by: Amelia Yukii <amelia.yukii@shourai.de>
This commit is contained in:
commit
aa7035a35a
@ -11,7 +11,11 @@ export default new DataSource({
|
|||||||
username: config.db.user,
|
username: config.db.user,
|
||||||
password: config.db.pass,
|
password: config.db.pass,
|
||||||
database: config.db.db,
|
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,
|
entities: entities,
|
||||||
migrations: ['migration/*.js'],
|
migrations: ['migration/*.js'],
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user