Project

General

Profile

Redmine Upgrade to 2.2.2 - Migration Plugins Step not working

Added by Richard Page almost 12 years ago

After upgrading my Windows Redmine installation (bitnami stack)
I imported the data, ran the rake db:migrate RAILS_ENV=production and this worked fine.

I do not have any plugins so do I actually need to run the following:

db:migrate:upgrade_plugin_migrations RAILS_ENV=production
and
db:migrate_plugins RAILS_ENV=production

Previously I have run these despite my having no plugins, but now I am experiencing problems and got the following when I tried to run the migrate

Note: The rake task db:migrate_plugins has been deprecated, please use the replacement version redmine:plugins:migrate

Then when I tried rake db:redmine:plugins:migrate RAILS_ENV="production"
I got:

>rake db:redmine:plugins:migrate RAILS_ENV="production"
rake aborted!
Don't know how to build task 'db:redmine:plugins:migrate'

BELOW IS OUTPUT FROM RUNNING A --trace on the

D:\BitNami\redmine-2.2.2-0\apps\redmine\htdocs>rake db:migrate:upgrade_plugin_mi
grations RAILS_ENV=production --trace

rake aborted!
Don't know how to build task 'db:migrate:upgrade_plugin_migrations'
D:/BitNami/redmine-2.2.2-0/ruby/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/t
ask_manager.rb:49:in `[]'
D:/BitNami/redmine-2.2.2-0/ruby/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/a
pplication.rb:115:in `invoke_task'
D:/BitNami/redmine-2.2.2-0/ruby/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/a
pplication.rb:94:in `block (2 levels) in top_level'
D:/BitNami/redmine-2.2.2-0/ruby/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/a
pplication.rb:94:in `each'
D:/BitNami/redmine-2.2.2-0/ruby/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/a
pplication.rb:94:in `block in top_level'
D:/BitNami/redmine-2.2.2-0/ruby/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/a
pplication.rb:133:in `standard_exception_handling'
D:/BitNami/redmine-2.2.2-0/ruby/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/a
pplication.rb:88:in `top_level'
D:/BitNami/redmine-2.2.2-0/ruby/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/a
pplication.rb:66:in `block in run'
D:/BitNami/redmine-2.2.2-0/ruby/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/a
pplication.rb:133:in `standard_exception_handling'
D:/BitNami/redmine-2.2.2-0/ruby/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/a
pplication.rb:63:in `run'
D:/BitNami/redmine-2.2.2-0/ruby/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:3
3:in `<top (required)>'
D:/BitNami/redmine-2.2.2-0/ruby/bin/rake:23:in `load'
D:/BitNami/redmine-2.2.2-0/ruby/bin/rake:23:in `<main>'


Replies (1)

RE: Redmine Upgrade to 2.2.2 - Migration Plugins Step not working - Added by Richard Page almost 12 years ago

Believe I may have the answer now to my own question. I see in some of the documentation that the 2nd command has changed from rake db:migrate to
rake redmine:plugins:migrate RAILS_ENV=production
I picked this up and it works, I found that the documentation varies with some referring to the old way and some the new!
Would still like to know if this was needed if you don't have any plugins installed

    (1-1/1)