@@ -460,6 +460,14 task :migrate_from_mantis => :environment do | |||||
460 | end |
|
460 | end | |
461 |
|
461 | |||
462 | puts |
|
462 | puts | |
|
463 | if Redmine::DefaultData::Loader.no_data? | |||
|
464 | puts "Redmine configuration need to be loaded before importing data." | |||
|
465 | puts "Please, run this first:" | |||
|
466 | puts | |||
|
467 | puts " rake redmine:load_default_data RAILS_ENV=\"#{ENV['RAILS_ENV']}\"" | |||
|
468 | exit | |||
|
469 | end | |||
|
470 | ||||
463 | puts "WARNING: Your Redmine data will be deleted during this process." |
|
471 | puts "WARNING: Your Redmine data will be deleted during this process." | |
464 | print "Are you sure you want to continue ? [y/N] " |
|
472 | print "Are you sure you want to continue ? [y/N] " | |
465 | break unless STDIN.gets.match(/^y$/i) |
|
473 | break unless STDIN.gets.match(/^y$/i) |
@@ -571,6 +571,14 namespace :redmine do | |||||
571 | end |
|
571 | end | |
572 |
|
572 | |||
573 | puts |
|
573 | puts | |
|
574 | if Redmine::DefaultData::Loader.no_data? | |||
|
575 | puts "Redmine configuration need to be loaded before importing data." | |||
|
576 | puts "Please, run this first:" | |||
|
577 | puts | |||
|
578 | puts " rake redmine:load_default_data RAILS_ENV=\"#{ENV['RAILS_ENV']}\"" | |||
|
579 | exit | |||
|
580 | end | |||
|
581 | ||||
574 | puts "WARNING: a new project will be added to Redmine during this process." |
|
582 | puts "WARNING: a new project will be added to Redmine during this process." | |
575 | print "Are you sure you want to continue ? [y/N] " |
|
583 | print "Are you sure you want to continue ? [y/N] " | |
576 | break unless STDIN.gets.match(/^y$/i) |
|
584 | break unless STDIN.gets.match(/^y$/i) |
General Comments 0
You need to be logged in to leave comments.
Login now