Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
gitlab-org
gitlab-exporter
Commits
1bd40052
Unverified
Commit
1bd40052
authored
Mar 18, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to new CI schema: gl_project_id => project_id
parent
9dfe92f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab_monitor/database/ci_builds.rb
lib/gitlab_monitor/database/ci_builds.rb
+2
-2
No files found.
lib/gitlab_monitor/database/ci_builds.rb
View file @
1bd40052
...
...
@@ -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 "
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment