This is an automated email from the git hooks/post-receive script.
cbaines pushed a commit to branch master
in repository data-service.
The following commit(s) were added to refs/heads/master by this push:
new 9872367 Avoid errors dropping partition tables if they don't exist
9872367 is described below
commit 9872367c01d95ed3fc5c73dd8ea31c3fa851f189
Author: Christopher Baines <[email protected]>
AuthorDate: Mon Feb 13 20:10:23 2023 +0000
Avoid errors dropping partition tables if they don't exist
---
guix-data-service/data-deletion.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix-data-service/data-deletion.scm
b/guix-data-service/data-deletion.scm
index a91d02b..07aeba5 100644
--- a/guix-data-service/data-deletion.scm
+++ b/guix-data-service/data-deletion.scm
@@ -222,7 +222,7 @@ WHERE id IN (
conn
(string-append
"
-DROP TABLE package_derivations_by_guix_revision_range_git_branch_"
+DROP TABLE IF EXISTS package_derivations_by_guix_revision_range_git_branch_"
(number->string git-branch-id) ";")))
(delete-guix-revisions conn git-repository-id commits))))