Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
6075a932
Commit
6075a932
authored
Sep 27, 2018
by
Matija Čupić
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update all pipelines in single query
parent
2122a770
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lib/gitlab/background_migration/populate_external_pipeline_source.rb
...background_migration/populate_external_pipeline_source.rb
+2
-3
No files found.
lib/gitlab/background_migration/populate_external_pipeline_source.rb
View file @
6075a932
...
...
@@ -34,9 +34,8 @@ module Gitlab
end
def
perform
(
start_id
,
stop_id
)
external_pipelines
(
start_id
,
stop_id
).
each
do
|
pipeline
|
pipeline
.
update_attribute
(
:source
,
Migratable
::
Pipeline
.
sources
[
:external
])
end
external_pipelines
(
start_id
,
stop_id
)
.
update_all
(
:source
,
Migratable
::
Pipeline
.
sources
[
:external
])
end
private
...
...
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