Pass the --db-client option to sqitch deploy
So that it can always find psql.
This commit is contained in:
parent
d7586e88fa
commit
93fdefc7b1
|
@ -36,6 +36,7 @@ AC_SUBST([guilemoduledir])
|
|||
AC_SUBST([GUILE_EFFECTIVE_VERSION])
|
||||
|
||||
AC_PATH_PROG([sqitch], [sqitch])
|
||||
AC_PATH_PROG([psql], [psql])
|
||||
|
||||
dnl Substitute placeholders to generate these target files
|
||||
AC_CONFIG_FILES([Makefile])
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
(port . 8765)
|
||||
|
||||
(sqitch . "@sqitch@")
|
||||
(sqitch-psql . "@psql@")
|
||||
(sqitch-plan . ,(let ((installed-plan
|
||||
"@prefix@/share/guix-data-service/sqitch/sqitch.plan")
|
||||
(dev-plan
|
||||
|
|
|
@ -71,6 +71,7 @@
|
|||
(let ((command
|
||||
(list (%config 'sqitch)
|
||||
"deploy"
|
||||
"--db-client" (%config 'sqitch-psql)
|
||||
"--plan-file" (%config 'sqitch-plan)
|
||||
(string-append "db:pg://"
|
||||
(%config 'database-user)
|
||||
|
|
Loading…
Reference in New Issue