aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2020-09-30 20:34:33 +0100
committerChristopher Baines <mail@cbaines.net>2020-09-30 20:34:33 +0100
commit3330f034a486a05ab1037c5ecc6814a0939ef441 (patch)
treea32a37f7ff92ab30cda5d5ac3f73d2839769eba3
parentd844b325e213c21059452be672ba13c729dd7a4b (diff)
downloaddata-service-3330f034a486a05ab1037c5ecc6814a0939ef441.tar
data-service-3330f034a486a05ab1037c5ecc6814a0939ef441.tar.gz
Remove a now redundant part of the maybe-delete-derivation query
As this is covered by the big query selecting the derivation ids.
-rw-r--r--guix-data-service/data-deletion.scm10
1 files changed, 0 insertions, 10 deletions
diff --git a/guix-data-service/data-deletion.scm b/guix-data-service/data-deletion.scm
index 40a5bab..6c2ab78 100644
--- a/guix-data-service/data-deletion.scm
+++ b/guix-data-service/data-deletion.scm
@@ -313,16 +313,6 @@ AND NOT EXISTS (
FROM derivation_outputs
WHERE derivation_id = $1
)
-) AND NOT EXISTS (
- SELECT 1
- FROM package_derivations
- WHERE package_derivations.derivation_id = derivation_outputs.derivation_id
-) AND NOT EXISTS (
- SELECT 1 FROM channel_instances
- WHERE derivation_id = $1
-) AND NOT EXISTS (
- SELECT 1 FROM guix_revision_system_test_derivations
- WHERE derivation_id = $1
)
RETURNING derivation_outputs.derivation_output_details_id"
(list id)))