Project

General

Profile

Upgrade version 2.0.2 to 2.3.0 - Bitnami Stack

Added by Fernando Palha over 11 years ago

Greetings

We have a Bitnami Stack Redmine 2.0.2 (Apache/MySQL/Subversion).

I follow the post Updating Redmine code only.

But the command: rake db:migrate RAILS_ENV=production

[root@dionisio htdocs]# rake db:migrate RAILS_ENV=production
==  AddUniqueIndexToIssueRelations: migrating =================================
-- add_index(:issue_relations, [:issue_from_id, :issue_to_id], {:unique=>true})
rake aborted!
An error has occurred, all later migrations canceled:

Index name 'index_issue_relations_on_issue_from_id_and_issue_to_id' on table 'issue_relations' already exists

Tasks: TOP => db:migrate
(See full trace by running task with --trace)
[root@dionisio htdocs]#
[root@dionisio htdocs]# rake db:migrate RAILS_ENV=production --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:migrate
==  AddUniqueIndexToIssueRelations: migrating =================================
-- add_index(:issue_relations, [:issue_from_id, :issue_to_id], {:unique=>true})
rake aborted!
An error has occurred, all later migrations canceled:

Index name 'index_issue_relations_on_issue_from_id_and_issue_to_id' on table 'issue_relations' already exists
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/schema_statements.rb:576:in `add_index_options'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/schema_statements.rb:351:in `add_index'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:466:in `send'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:466:in `method_missing'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:438:in `say_with_time'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:438:in `say_with_time'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:458:in `method_missing'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:334:in `send'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:334:in `method_missing'
/opt/redmine-2.3.0-0/apps/redmine/htdocs/db/migrate/20111201201315_add_unique_index_to_issue_relations.rb:10:in `up'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:370:in `up'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `send'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `migrate'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:410:in `migrate'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:389:in `migrate'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:528:in `__send__'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:528:in `migrate'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:720:in `migrate'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:777:in `call'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:777:in `ddl_transaction'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:719:in `migrate'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:700:in `each'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:700:in `migrate'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:570:in `up'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/migration.rb:551:in `migrate'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-3.2.13/lib/active_record/railties/databases.rake:193
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/usr/local/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
Tasks: TOP => db:migrate
[root@dionisio htdocs]#

How to fix it?

Regards.


    (1-1/1)