Commit 501fed21 authored by John Northrup's avatar John Northrup
Browse files

Merge branch 'update-to-new-ci-schema' into 'master'

Update to new CI schema: gl_project_id => project_id

See merge request !43
parents 9dfe92f0 1bd40052
Pipeline #45170 passed with stage
in 4 minutes and 34 seconds
......@@ -11,7 +11,7 @@ module GitLab
" COUNT(*) AS count " \
" FROM ci_builds " \
" JOIN projects " \
" ON projects.id = ci_builds.gl_project_id " \
" ON projects.id = ci_builds.project_id " \
" WHERE ci_builds.type = 'Ci::Build' " \
" AND ci_builds.status IN ('created', 'pending') " \
" GROUP BY " \
......@@ -39,7 +39,7 @@ module GitLab
" JOIN ci_runners " \
" ON ci_runners.id = ci_builds.runner_id " \
" JOIN projects " \
" ON projects.id = ci_builds.gl_project_id " \
" ON projects.id = ci_builds.project_id " \
" WHERE ci_builds.type = 'Ci::Build' " \
" AND ci_builds.status = 'running' " \
" GROUP BY " \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment