aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-10-11 14:11:19 +0100
committerChristopher Baines <mail@cbaines.net>2020-10-11 15:15:26 +0100
commit2f088962232b509246fc2df39b56fcb06abe7492 (patch)
tree53a74ffd31a1cc20b3fe90a4f9a3934db4886769
parentaa9c9b3ef0d779290359a4add681c8e6bb4db6f2 (diff)
downloadbuild-coordinator-2f088962232b509246fc2df39b56fcb06abe7492.tar
build-coordinator-2f088962232b509246fc2df39b56fcb06abe7492.tar.gz
Move the registry file to a clearer name
This will be a breaking change for existing deployments, as the old sqitch.db file will need to be moved manually.
-rw-r--r--guix-build-coordinator/datastore/sqlite.scm5
-rw-r--r--sqitch.conf1
2 files changed, 6 insertions, 0 deletions
diff --git a/guix-build-coordinator/datastore/sqlite.scm b/guix-build-coordinator/datastore/sqlite.scm
index 03eea76..7783f76 100644
--- a/guix-build-coordinator/datastore/sqlite.scm
+++ b/guix-build-coordinator/datastore/sqlite.scm
@@ -1740,6 +1740,11 @@ WHERE build_results.build_id = :build_id")))
(string-append (dirname (%config 'sqitch-plan))
"/sqlite"))
"--plan-file" (%config 'sqitch-plan)
+ "--registry" (string-append
+ (if (string-suffix? ".db" database-file)
+ (string-drop-right database-file 3)
+ database-file)
+ "_sqitch_registry.db")
(string-append "db:sqlite:" database-file))))
(simple-format #t "running command: ~A\n"
diff --git a/sqitch.conf b/sqitch.conf
index 44a53d2..376e046 100644
--- a/sqitch.conf
+++ b/sqitch.conf
@@ -10,5 +10,6 @@
top_dir = sqitch/sqlite
[target "sqlite_guix_build_coordinator"]
uri = db:sqlite:guix_build_coordinator.db
+ registry = guix_build_coordinator_sqitch_registry.db
[target "pg_guix_build_coordinator"]
uri = db:pg://guix_build_coordinator@/guix_build_coordinator