aboutsummaryrefslogtreecommitdiff
path: root/guix-data-service
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-10-17 21:24:22 +0100
committerChristopher Baines <mail@cbaines.net>2019-10-17 21:24:22 +0100
commit818be2ed9895645ba06963defeb10d395bf14a1e (patch)
tree98bfb30fd507391879522b68f4804668222ef7a3 /guix-data-service
parentd0a1ebcb11bdf431a95a88fe86e63122e22e1592 (diff)
downloaddata-service-818be2ed9895645ba06963defeb10d395bf14a1e.tar
data-service-818be2ed9895645ba06963defeb10d395bf14a1e.tar.gz
Fix some long lines in the package-versions-for-branch query
Diffstat (limited to 'guix-data-service')
-rw-r--r--guix-data-service/model/package.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/guix-data-service/model/package.scm b/guix-data-service/model/package.scm
index 095b48f..6b2680f 100644
--- a/guix-data-service/model/package.scm
+++ b/guix-data-service/model/package.scm
@@ -219,11 +219,13 @@ FROM package_versions_by_guix_revision_range
INNER JOIN guix_revisions AS first_guix_revisions
ON first_guix_revision_id = first_guix_revisions.id
INNER JOIN git_branches AS first_git_branches
- ON first_guix_revisions.git_repository_id = first_git_branches.git_repository_id AND first_guix_revisions.commit = first_git_branches.commit
+ ON first_guix_revisions.git_repository_id = first_git_branches.git_repository_id
+ AND first_guix_revisions.commit = first_git_branches.commit
INNER JOIN guix_revisions AS last_guix_revisions
ON last_guix_revision_id = last_guix_revisions.id
INNER JOIN git_branches AS last_git_branches
- ON last_guix_revisions.git_repository_id = last_git_branches.git_repository_id AND last_guix_revisions.commit = last_git_branches.commit
+ ON last_guix_revisions.git_repository_id = last_git_branches.git_repository_id
+ AND last_guix_revisions.commit = last_git_branches.commit
WHERE package_name = $1
AND package_versions_by_guix_revision_range.git_repository_id = $2
AND package_versions_by_guix_revision_range.branch_name = $3