aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2021-07-04 10:43:13 +0100
committerChristopher Baines <mail@cbaines.net>2021-07-04 10:43:13 +0100
commitb4188bda9df04231f9dee9956a68daa049a71584 (patch)
tree84f2fc870bafa1c9444d74b3c0be17ffa34213c9 /scripts
parent0dc05982cde052c985bb440dc026cbe3334ee50b (diff)
downloaddata-service-b4188bda9df04231f9dee9956a68daa049a71584.tar
data-service-b4188bda9df04231f9dee9956a68daa049a71584.tar.gz
Run sqitch in the change mode
Since this rolls back migrations less, which is good when the rollback bit isn't always implemented.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/guix-data-service.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/guix-data-service.in b/scripts/guix-data-service.in
index 481e87d..33cf2b5 100644
--- a/scripts/guix-data-service.in
+++ b/scripts/guix-data-service.in
@@ -143,6 +143,8 @@
"--db-client" (%config 'sqitch-psql)
"--chdir" (dirname (dirname (%config 'sqitch-plan)))
"--plan-file" (%config 'sqitch-plan)
+ "--mode" "change" ; this helps when migrations don't
+ ; have the revert bit implemented
(let* ((database-config (get-database-config))
(params (string-join
(map