Commit f1e32766 authored by Tiago Botelho's avatar Tiago Botelho

Fix background migration PopulateImportState conflicts

parent 75eada1f
...@@ -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}
......
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