Rewrite localhost for sqitch
As this means that like psql, the unix socket will be used.
This commit is contained in:
parent
44c0c9d0dd
commit
977609c66e
1 changed files with 5 additions and 1 deletions
|
|
@ -98,7 +98,11 @@
|
||||||
(string-append "db:pg://"
|
(string-append "db:pg://"
|
||||||
(%config 'database-user)
|
(%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)))))
|
(%config 'database-name)))))
|
||||||
(simple-format #t "running command: ~A\n"
|
(simple-format #t "running command: ~A\n"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue