Skip to content
Snippets Groups Projects

5 0 stable

Closed gitlab-qa-bot requested to merge 5-0-stable into master
3 files
+ 114
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -11,7 +11,13 @@ namespace :gitlab do
@@ -11,7 +11,13 @@ namespace :gitlab do
# Notes:
# Notes:
# * The existing Wiki content will remain in your
# * The existing Wiki content will remain in your
# database in-tact.
# database in-tact.
desc "GITLAB | Migrate Wiki content from database to Gollum repositories."
# * If the migration does not work the first time,
 
# run the `RAILS_ENV=production rake gitlab:wiki:rollback`
 
# command and then execute the migration again with
 
# the safe_migrate=true environment variable:
 
#
 
# `RAILS_ENV=production rake gitlab:wiki:migrate safe_migrate=true`
 
desc "GITLAB | Migrate Wiki content from database to Gollum repositories. Use the safe_migrate=true argument if initial migration fails."
task :migrate => :environment do
task :migrate => :environment do
wiki_migrator = WikiToGollumMigrator.new
wiki_migrator = WikiToGollumMigrator.new
wiki_migrator.migrate!
wiki_migrator.migrate!
Loading