[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: Run sqitch in the change mode
From: |
Christopher Baines |
Subject: |
01/02: Run sqitch in the change mode |
Date: |
Sun, 11 Jul 2021 07:07:28 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository data-service.
commit b4188bda9df04231f9dee9956a68daa049a71584
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Sun Jul 4 10:43:13 2021 +0100
Run sqitch in the change mode
Since this rolls back migrations less, which is good when the rollback bit
isn't always implemented.
---
scripts/guix-data-service.in | 2 ++
1 file changed, 2 insertions(+)
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