It will create tables and an administrator account.\r
\r
5. Insert default configuration data in database:\r
- rake load_default_data RAILS_ENV="production"\r
+ rake redmine:load_default_data RAILS_ENV="production"\r
It will load default roles, trackers, statuses, workflows and enumerations.\r
This step is optional (but recommended), as you can define your\r
own configuration from sratch.\r
--- /dev/null
+def deprecated_task(name, new_name)
+ task name=>new_name do
+ $stderr.puts "\nNote: The rake task #{name} has been deprecated, please use the replacement version #{new_name}"
+ end
+end
+
+deprecated_task :load_default_data, "redmine:load_default_data"
+deprecated_task :migrate_from_mantis, "redmine:migrate_from_mantis"
+deprecated_task :migrate_from_trac, "redmine:migrate_from_trac"
-desc 'Load default configuration data'\r
+desc 'Load Redmine default configuration data'\r
\r
+namespace :redmine do\r
task :load_default_data => :environment do\r
include GLoc\r
set_language_if_valid('en')\r
puts "Error: " + error\r
puts "Default configuration data can't be loaded."\r
end\r
-end
\ No newline at end of file
+end\r
+end\r
require 'iconv'\r
require 'pp'\r
\r
+namespace :redmine do\r
task :migrate_from_mantis => :environment do\r
\r
module MantisMigrate\r
MantisMigrate.establish_connection db_params\r
MantisMigrate.migrate\r
end\r
+end\r