diff options
author | Christopher Baines <mail@cbaines.net> | 2019-12-05 14:10:09 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2019-12-12 20:07:22 +0000 |
commit | 0291bda98abf4cf4299434ed304aa72846f405dd (patch) | |
tree | e55912d1c0a6170be179139891576f15a25d93ee /sqitch/revert | |
parent | 8a5beb7f8813ec6ecca3d1e8da256bbbbcc67a36 (diff) | |
download | data-service-0291bda98abf4cf4299434ed304aa72846f405dd.tar data-service-0291bda98abf4cf4299434ed304aa72846f405dd.tar.gz |
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.
Diffstat (limited to 'sqitch/revert')
-rw-r--r-- | sqitch/revert/sort_out_duplicate_builds.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sqitch/revert/sort_out_duplicate_builds.sql b/sqitch/revert/sort_out_duplicate_builds.sql new file mode 100644 index 0000000..153a4ef --- /dev/null +++ b/sqitch/revert/sort_out_duplicate_builds.sql @@ -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; |