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
0da5a4fa
Commit
0da5a4fa
authored
Apr 05, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
separate rake task for migration and persistent one
parent
10902c84
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
lib/tasks/migrate/migrate_mr.rake
lib/tasks/migrate/migrate_mr.rake
+11
-0
lib/tasks/migrate/migrate_wiki.rake
lib/tasks/migrate/migrate_wiki.rake
+0
-0
No files found.
lib/tasks/migrate/migrate_mr.rake
0 → 100644
View file @
0da5a4fa
# This taks will reload commits/diff for all merge requests
desc
"GITLAB | Migrate Merge Requests"
task
migrate_merge_requests: :environment
do
MergeRequest
.
find_each
(
batch_size:
20
)
do
|
mr
|
mr
.
st_commits
=
[]
mr
.
save
mr
.
reload_code
print
'.'
end
end
lib/tasks/
gitlab
/migrate_wiki.rake
→
lib/tasks/
migrate
/migrate_wiki.rake
View file @
0da5a4fa
File moved
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