From 0242bc6a2e7921b11727e4fdd59497d4da99cd0f Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Wed, 1 Jul 2020 09:35:40 +0100 Subject: Remove the constraint on having one derivation build per server As the Guix Build Coordinator can build one derivation many times. --- .../builds_remove_build_server_id_derivation_unique_constraint.sql | 7 +++++++ .../builds_remove_build_server_id_derivation_unique_constraint.sql | 7 +++++++ sqitch/sqitch.plan | 1 + .../builds_remove_build_server_id_derivation_unique_constraint.sql | 7 +++++++ 4 files changed, 22 insertions(+) create mode 100644 sqitch/deploy/builds_remove_build_server_id_derivation_unique_constraint.sql create mode 100644 sqitch/revert/builds_remove_build_server_id_derivation_unique_constraint.sql create mode 100644 sqitch/verify/builds_remove_build_server_id_derivation_unique_constraint.sql (limited to 'sqitch') 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 # Make build_status.timestamp nullable build_add_build_server_build_id 2020-06-27T12:48:57Z Christopher Baines # Add builds.build_server_build_id build_status_add_unique_index 2020-06-30T17:19:30Z Christopher Baines # Add a unique index to the build_status table +builds_remove_build_server_id_derivation_unique_constraint 2020-06-30T20:17:48Z Christopher Baines # 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; -- cgit v1.2.3