Rewrite localhost for sqitch

As this means that like psql, the unix socket will be used.
This commit is contained in:
Christopher Baines 2019-10-01 19:03:34 +01:00
parent 44c0c9d0dd
commit 977609c66e

View file

@ -98,7 +98,11 @@
(string-append "db:pg://"
(%config 'database-user)
"@"
(%config 'database-host)
(if (string=? (%config 'database-host)
"localhost")
"" ; This means the unix socket
; connection will be used
(%config 'database-host))
"/"
(%config 'database-name)))))
(simple-format #t "running command: ~A\n"