Deduplicate builds and add a unique index
Duplicate builds could creep in if the code to create them ran concurrently. I didn't exclude them initially, as I was unsure if there should be such a restriction, but at least for now, Cuirass builds map exactly to a single derivation, so use the same restriction here.
This commit is contained in:
parent
8a5beb7f88
commit
0291bda98a
4 changed files with 48 additions and 0 deletions
7
sqitch/revert/sort_out_duplicate_builds.sql
Normal file
7
sqitch/revert/sort_out_duplicate_builds.sql
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
-- Revert guix-data-service:sort_out_duplicate_builds from pg
|
||||
|
||||
BEGIN;
|
||||
|
||||
DROP INDEX builds_build_server_id_derivation_file_name_idx;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Add table
Add a link
Reference in a new issue