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/verify | |
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/verify')
-rw-r--r-- | sqitch/verify/sort_out_duplicate_builds.sql | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sqitch/verify/sort_out_duplicate_builds.sql b/sqitch/verify/sort_out_duplicate_builds.sql new file mode 100644 index 0000000..a63cda4 --- /dev/null +++ b/sqitch/verify/sort_out_duplicate_builds.sql @@ -0,0 +1,7 @@ +-- Verify guix-data-service:sort_out_duplicate_builds on pg + +BEGIN; + +-- XXX Add verifications here. + +ROLLBACK; |