Skip to content
Snippets Groups Projects
Commit 19f44cd1 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

Disable email notifications before importing data.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2710 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0a0d14d5
Branches
Tags
No related merge requests found
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment