fix(git): handle file renames between folders (#6020)

* git storage: handle file renames between folders

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
This commit is contained in:
Eric Knibbe
2023-01-29 23:09:33 -05:00
committed by GitHub
parent 8fa771c4ce
commit 2e8585478f
4 changed files with 23 additions and 8 deletions

View File

@@ -138,7 +138,7 @@ module.exports = {
switch (WIKI.config.db.type) {
case 'postgres':
await conn.query(`set application_name = 'Wiki.js'`)
// -> Set schema if it's not public
// -> Set schema if it's not public
if (WIKI.config.db.schema && WIKI.config.db.schema !== 'public') {
await conn.query(`set search_path TO ${WIKI.config.db.schema}, public;`)
}