mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(server): don't hardcode database name in migration (#19376)
This commit is contained in:
parent
373b654156
commit
6fda863c08
1 changed files with 1 additions and 1 deletions
|
|
@ -7,8 +7,8 @@ export async function up(qb: Kysely<any>): Promise<void> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
await sql`alter database immich reset all;`.execute(qb);
|
|
||||||
const { db, guc } = res.rows[0];
|
const { db, guc } = res.rows[0];
|
||||||
|
await sql.raw(`alter database "${db}" reset all;`).execute(qb);
|
||||||
for (const parameter of guc) {
|
for (const parameter of guc) {
|
||||||
const [key, value] = parameter.split('=');
|
const [key, value] = parameter.split('=');
|
||||||
if (key === 'vchordrq.prewarm_dim') {
|
if (key === 'vchordrq.prewarm_dim') {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue