Cleanup casing in api extension setup

This commit is contained in:
Zoe Roux 2025-11-09 19:08:58 +01:00
parent 0a862c3782
commit 40c13e7ddf
No known key found for this signature in database

View File

@ -120,8 +120,8 @@ export const migrate = async () => {
await db.execute( await db.execute(
sql.raw(` sql.raw(`
create extension if not exists pg_trgm; create extension if not exists pg_trgm;
SET pg_trgm.word_similarity_threshold = 0.4; set pg_trgm.word_similarity_threshold = 0.4;
ALTER DATABASE "${postgresConfig.database}" SET pg_trgm.word_similarity_threshold = 0.4; alter database "${postgresConfig.database}" set pg_trgm.word_similarity_threshold = 0.4;
`), `),
); );
} catch (err: any) { } catch (err: any) {