Commit 4471ca45 authored by Nick Thomas's avatar Nick Thomas

Fix the EnsureProjectMirrorData post migration

parent 62ff363c
...@@ -7,7 +7,15 @@ class EnsureProjectMirrorData < ActiveRecord::Migration ...@@ -7,7 +7,15 @@ class EnsureProjectMirrorData < ActiveRecord::Migration
return unless Gitlab::Database.postgresql? return unless Gitlab::Database.postgresql?
execute <<-SQL execute <<-SQL
INSERT INTO project_mirror_data INSERT INTO project_mirror_data (
project_id,
retry_count,
last_update_started_at,
last_update_scheduled_at,
next_execution_timestamp,
created_at,
updated_at
)
SELECT id AS project_id, SELECT id AS project_id,
0 AS retry_count, 0 AS retry_count,
CAST(NULL AS TIMESTAMP) AS last_update_started_at, CAST(NULL AS TIMESTAMP) AS last_update_started_at,
......
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