@@ -504,6 +504,9 task :migrate_from_mantis => :environment do | |||||
504 | # Make sure bugs can refer bugs in other projects |
|
504 | # Make sure bugs can refer bugs in other projects | |
505 | Setting.cross_project_issue_relations = 1 if Setting.respond_to? 'cross_project_issue_relations' |
|
505 | Setting.cross_project_issue_relations = 1 if Setting.respond_to? 'cross_project_issue_relations' | |
506 |
|
506 | |||
|
507 | # Turn off email notifications | |||
|
508 | Setting.notified_events = [] | |||
|
509 | ||||
507 | MantisMigrate.establish_connection db_params |
|
510 | MantisMigrate.establish_connection db_params | |
508 | MantisMigrate.migrate |
|
511 | MantisMigrate.migrate | |
509 | end |
|
512 | end |
@@ -752,7 +752,10 namespace :redmine do | |||||
752 | prompt('Trac database encoding', :default => 'UTF-8') {|encoding| TracMigrate.encoding encoding} |
|
752 | prompt('Trac database encoding', :default => 'UTF-8') {|encoding| TracMigrate.encoding encoding} | |
753 | prompt('Target project identifier') {|identifier| TracMigrate.target_project_identifier identifier} |
|
753 | prompt('Target project identifier') {|identifier| TracMigrate.target_project_identifier identifier} | |
754 | puts |
|
754 | puts | |
755 |
|
755 | |||
|
756 | # Turn off email notifications | |||
|
757 | Setting.notified_events = [] | |||
|
758 | ||||
756 | TracMigrate.migrate |
|
759 | TracMigrate.migrate | |
757 | end |
|
760 | end | |
758 | end |
|
761 | end |
General Comments 0
You need to be logged in to leave comments.
Login now