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:
Jean-Philippe Lang 2009-05-04 17:41:52 +00:00
parent 0a0d14d5a7
commit 19f44cd1cb
2 changed files with 7 additions and 1 deletions

View File

@ -504,6 +504,9 @@ task :migrate_from_mantis => :environment do
# Make sure bugs can refer bugs in other projects # Make sure bugs can refer bugs in other projects
Setting.cross_project_issue_relations = 1 if Setting.respond_to? 'cross_project_issue_relations' 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.establish_connection db_params
MantisMigrate.migrate MantisMigrate.migrate
end end

View File

@ -753,6 +753,9 @@ namespace :redmine do
prompt('Target project identifier') {|identifier| TracMigrate.target_project_identifier identifier} prompt('Target project identifier') {|identifier| TracMigrate.target_project_identifier identifier}
puts puts
# Turn off email notifications
Setting.notified_events = []
TracMigrate.migrate TracMigrate.migrate
end end
end end