From e7ee063021e0aabcd80d1456116bc3f2bd9068fe Mon Sep 17 00:00:00 2001 From: Flummi Date: Sun, 8 May 2022 05:51:09 +0200 Subject: [PATCH] psql search_path --- src/inc/sql.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inc/sql.mjs b/src/inc/sql.mjs index cb805f7..c508882 100644 --- a/src/inc/sql.mjs +++ b/src/inc/sql.mjs @@ -5,6 +5,6 @@ import cfg from "./config.mjs"; const db = postgres(cfg.sql); if(cfg.sql.schema) - await db.unsafe(`set schema '${cfg.sql.schema}';`); + await db.unsafe(`set search_path to '${cfg.sql.schema}';`); export default db;