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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
f1e32766
Commit
f1e32766
authored
May 07, 2018
by
Tiago Botelho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix background migration PopulateImportState conflicts
parent
75eada1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
lib/gitlab/background_migration/populate_import_state.rb
lib/gitlab/background_migration/populate_import_state.rb
+0
-5
No files found.
lib/gitlab/background_migration/populate_import_state.rb
View file @
f1e32766
...
@@ -15,13 +15,8 @@ module Gitlab
...
@@ -15,13 +15,8 @@ module Gitlab
Rails
.
logger
.
info
(
"
#{
self
.
class
.
name
}
- Moving import attributes data to project mirror data table:
#{
start_id
}
-
#{
end_id
}
"
)
Rails
.
logger
.
info
(
"
#{
self
.
class
.
name
}
- Moving import attributes data to project mirror data table:
#{
start_id
}
-
#{
end_id
}
"
)
ActiveRecord
::
Base
.
connection
.
execute
<<~
SQL
ActiveRecord
::
Base
.
connection
.
execute
<<~
SQL
<<<<<<< HEAD
INSERT INTO project_mirror_data (project_id, status, jid, last_update_at, last_successful_update_at, last_error)
INSERT INTO project_mirror_data (project_id, status, jid, last_update_at, last_successful_update_at, last_error)
SELECT id, import_status, import_jid, mirror_last_update_at, mirror_last_successful_update_at, import_error
SELECT id, import_status, import_jid, mirror_last_update_at, mirror_last_successful_update_at, import_error
=======
INSERT INTO project_mirror_data (project_id, status, jid, last_error)
SELECT id, import_status, import_jid, import_error
>>>>>>> upstream/master
FROM projects
FROM projects
WHERE projects.import_status != 'none'
WHERE projects.import_status != 'none'
AND projects.id BETWEEN
#{
start_id
}
AND
#{
end_id
}
AND projects.id BETWEEN
#{
start_id
}
AND
#{
end_id
}
...
...
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