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
4471ca45
Commit
4471ca45
authored
Jun 08, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the EnsureProjectMirrorData post migration
parent
62ff363c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
db/post_migrate/20170530111134_ensure_project_mirror_data.rb
db/post_migrate/20170530111134_ensure_project_mirror_data.rb
+9
-1
No files found.
db/post_migrate/20170530111134_ensure_project_mirror_data.rb
View file @
4471ca45
...
...
@@ -7,7 +7,15 @@ class EnsureProjectMirrorData < ActiveRecord::Migration
return
unless
Gitlab
::
Database
.
postgresql?
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,
0 AS retry_count,
CAST(NULL AS TIMESTAMP) AS last_update_started_at,
...
...
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