Pass the --db-client option to sqitch deploy

So that it can always find psql.
This commit is contained in:
Christopher Baines 2019-06-11 07:15:01 +01:00
parent d7586e88fa
commit 93fdefc7b1
3 changed files with 3 additions and 0 deletions

View File

@ -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])

View File

@ -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

View File

@ -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)