@@ -0,0 +1,9 | |||
|
1 | def deprecated_task(name, new_name) | |
|
2 | task name=>new_name do | |
|
3 | $stderr.puts "\nNote: The rake task #{name} has been deprecated, please use the replacement version #{new_name}" | |
|
4 | end | |
|
5 | end | |
|
6 | ||
|
7 | deprecated_task :load_default_data, "redmine:load_default_data" | |
|
8 | deprecated_task :migrate_from_mantis, "redmine:migrate_from_mantis" | |
|
9 | deprecated_task :migrate_from_trac, "redmine:migrate_from_trac" |
@@ -37,7 +37,7 Supported databases: | |||
|
37 | 37 | It will create tables and an administrator account. |
|
38 | 38 | |
|
39 | 39 | 5. Insert default configuration data in database: |
|
40 | rake load_default_data RAILS_ENV="production" | |
|
40 | rake redmine:load_default_data RAILS_ENV="production" | |
|
41 | 41 | It will load default roles, trackers, statuses, workflows and enumerations. |
|
42 | 42 | This step is optional (but recommended), as you can define your |
|
43 | 43 | own configuration from sratch. |
@@ -1,5 +1,6 | |||
|
1 | desc 'Load default configuration data' | |
|
1 | desc 'Load Redmine default configuration data' | |
|
2 | 2 | |
|
3 | namespace :redmine do | |
|
3 | 4 | task :load_default_data => :environment do |
|
4 | 5 | include GLoc |
|
5 | 6 | set_language_if_valid('en') |
@@ -163,4 +164,5 rescue => error | |||
|
163 | 164 | puts "Error: " + error |
|
164 | 165 | puts "Default configuration data can't be loaded." |
|
165 | 166 | end |
|
166 | end No newline at end of file | |
|
167 | end | |
|
168 | end |
@@ -21,6 +21,7 require 'active_record' | |||
|
21 | 21 | require 'iconv' |
|
22 | 22 | require 'pp' |
|
23 | 23 | |
|
24 | namespace :redmine do | |
|
24 | 25 | task :migrate_from_mantis => :environment do |
|
25 | 26 | |
|
26 | 27 | module MantisMigrate |
@@ -483,3 +484,4 task :migrate_from_mantis => :environment do | |||
|
483 | 484 | MantisMigrate.establish_connection db_params |
|
484 | 485 | MantisMigrate.migrate |
|
485 | 486 | end |
|
487 | end |
General Comments 0
You need to be logged in to leave comments.
Login now