Disable email notifications before importing data.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2710 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0a0d14d5a7
commit
19f44cd1cb
|
@ -504,6 +504,9 @@ task :migrate_from_mantis => :environment do
|
|||
# Make sure bugs can refer bugs in other projects
|
||||
Setting.cross_project_issue_relations = 1 if Setting.respond_to? 'cross_project_issue_relations'
|
||||
|
||||
# Turn off email notifications
|
||||
Setting.notified_events = []
|
||||
|
||||
MantisMigrate.establish_connection db_params
|
||||
MantisMigrate.migrate
|
||||
end
|
||||
|
|
|
@ -752,7 +752,10 @@ namespace :redmine do
|
|||
prompt('Trac database encoding', :default => 'UTF-8') {|encoding| TracMigrate.encoding encoding}
|
||||
prompt('Target project identifier') {|identifier| TracMigrate.target_project_identifier identifier}
|
||||
puts
|
||||
|
||||
|
||||
# Turn off email notifications
|
||||
Setting.notified_events = []
|
||||
|
||||
TracMigrate.migrate
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue