diff options
author | Christopher Baines <mail@cbaines.net> | 2021-07-04 10:43:13 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2021-07-04 10:43:13 +0100 |
commit | b4188bda9df04231f9dee9956a68daa049a71584 (patch) | |
tree | 84f2fc870bafa1c9444d74b3c0be17ffa34213c9 /scripts | |
parent | 0dc05982cde052c985bb440dc026cbe3334ee50b (diff) | |
download | data-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.in | 2 |
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 |