aboutsummaryrefslogtreecommitdiff
path: root/sqitch
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-07-01 09:35:40 +0100
committerChristopher Baines <mail@cbaines.net>2020-07-01 09:35:40 +0100
commit0242bc6a2e7921b11727e4fdd59497d4da99cd0f (patch)
tree9bdec9377bdb77e49556ecdb10af221e50b48489 /sqitch
parent5ee82075656609e4b2cd03a304162959147f929c (diff)
downloaddata-service-0242bc6a2e7921b11727e4fdd59497d4da99cd0f.tar
data-service-0242bc6a2e7921b11727e4fdd59497d4da99cd0f.tar.gz
Remove the constraint on having one derivation build per server
As the Guix Build Coordinator can build one derivation many times.
Diffstat (limited to 'sqitch')
-rw-r--r--sqitch/deploy/builds_remove_build_server_id_derivation_unique_constraint.sql7
-rw-r--r--sqitch/revert/builds_remove_build_server_id_derivation_unique_constraint.sql7
-rw-r--r--sqitch/sqitch.plan1
-rw-r--r--sqitch/verify/builds_remove_build_server_id_derivation_unique_constraint.sql7
4 files changed, 22 insertions, 0 deletions
diff --git a/sqitch/deploy/builds_remove_build_server_id_derivation_unique_constraint.sql b/sqitch/deploy/builds_remove_build_server_id_derivation_unique_constraint.sql
new file mode 100644
index 0000000..dc5ccfc
--- /dev/null
+++ b/sqitch/deploy/builds_remove_build_server_id_derivation_unique_constraint.sql
@@ -0,0 +1,7 @@
+-- Deploy guix-data-service:builds_remove_build_server_id_derivation_unique_constraint to pg
+
+BEGIN;
+
+DROP INDEX builds_build_server_id_derivation_file_name_idx;
+
+COMMIT;
diff --git a/sqitch/revert/builds_remove_build_server_id_derivation_unique_constraint.sql b/sqitch/revert/builds_remove_build_server_id_derivation_unique_constraint.sql
new file mode 100644
index 0000000..32d495d
--- /dev/null
+++ b/sqitch/revert/builds_remove_build_server_id_derivation_unique_constraint.sql
@@ -0,0 +1,7 @@
+-- Revert guix-data-service:builds_remove_build_server_id_derivation_unique_constraint from pg
+
+BEGIN;
+
+-- XXX Add DDLs here.
+
+COMMIT;
diff --git a/sqitch/sqitch.plan b/sqitch/sqitch.plan
index 318d2c6..c47cb84 100644
--- a/sqitch/sqitch.plan
+++ b/sqitch/sqitch.plan
@@ -64,3 +64,4 @@ translations_for_package_synopsis_and_descriptions 2020-06-09T12:42:54Z daniela
build_status_nullable_timestamp 2020-06-27T12:34:29Z Christopher Baines <mail@cbaines.net> # Make build_status.timestamp nullable
build_add_build_server_build_id 2020-06-27T12:48:57Z Christopher Baines <mail@cbaines.net> # Add builds.build_server_build_id
build_status_add_unique_index 2020-06-30T17:19:30Z Christopher Baines <mail@cbaines.net> # Add a unique index to the build_status table
+builds_remove_build_server_id_derivation_unique_constraint 2020-06-30T20:17:48Z Christopher Baines <mail@cbaines.net> # Allow multiple builds of the same derivation per build server
diff --git a/sqitch/verify/builds_remove_build_server_id_derivation_unique_constraint.sql b/sqitch/verify/builds_remove_build_server_id_derivation_unique_constraint.sql
new file mode 100644
index 0000000..7a1785c
--- /dev/null
+++ b/sqitch/verify/builds_remove_build_server_id_derivation_unique_constraint.sql
@@ -0,0 +1,7 @@
+-- Verify guix-data-service:builds_remove_build_server_id_derivation_unique_constraint on pg
+
+BEGIN;
+
+-- XXX Add verifications here.
+
+ROLLBACK;