Fix more issues with the git_commits introduction
This commit is contained in:
parent
6d403cbc8d
commit
d4bb0ffaaa
3 changed files with 17 additions and 9 deletions
|
|
@ -549,6 +549,8 @@ ORDER BY first_datetime DESC, package_version DESC")
|
|||
WITH branches AS (
|
||||
SELECT DISTINCT ON (git_repository_id, name) git_repository_id, name
|
||||
FROM git_branches
|
||||
INNER JOIN git_commits
|
||||
ON git_commits.git_branch_id = git_branches.id
|
||||
WHERE commit <> ''
|
||||
ORDER BY git_repository_id, name, datetime DESC
|
||||
)
|
||||
|
|
@ -563,8 +565,10 @@ FROM branches
|
|||
CROSS JOIN LATERAL (
|
||||
SELECT guix_revisions.id
|
||||
FROM git_branches
|
||||
INNER JOIN git_commits
|
||||
ON git_branches.id = git_commits.git_branch_id
|
||||
INNER JOIN guix_revisions
|
||||
ON git_branches.commit = guix_revisions.commit
|
||||
ON git_commits.commit = guix_revisions.commit
|
||||
INNER JOIN load_new_guix_revision_jobs
|
||||
ON load_new_guix_revision_jobs.commit = guix_revisions.commit
|
||||
INNER JOIN load_new_guix_revision_job_events
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue