I tried to upgrade a redmine 0.8.7 (with several users and projects) to 0.9.0 to use your plugin.
When I install your plugin an call rake db:migrate_plugins RAILS_ENV=production following error comes:
== AddIssuesParentIdLftAndRgt: migrating =====================================
-- add_column(:issues, :parent_id, :integer, {:default=>nil})
rake aborted!
An error has occurred, all later migrations canceled:
Mysql::Error: Duplicate column name 'parent_id': ALTER TABLE issues ADD parent_id int(11) DEFAULT NULL
full trace is:
rake aborted!
An error has occurred, all later migrations canceled:
Hi,
I tried to upgrade a redmine 0.8.7 (with several users and projects) to 0.9.0 to use your plugin. When I install your plugin an call rake db:migrate_plugins RAILS_ENV=production following error comes:
== AddIssuesParentIdLftAndRgt: migrating ===================================== -- add_column(:issues, :parent_id, :integer, {:default=>nil}) rake aborted! An error has occurred, all later migrations canceled:
Mysql::Error: Duplicate column name 'parent_id': ALTER TABLE
issues
ADDparent_id
int(11) DEFAULT NULLfull trace is:
rake aborted! An error has occurred, all later migrations canceled:
Mysql::Error: Duplicate column name 'parent_id': ALTER TABLE
issues
ADDparent_id
int(11) DEFAULT NULL /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract_adapter.rb:219:inlog' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/mysql_adapter.rb:323:in
execute' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_adapters/abstract/schema_statements.rb:195:inadd_column' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:352:in
send' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:352:inmethod_missing' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:328:in
say_with_time' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:328:in
say_with_time' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:348:inmethod_missing' /var/www/redmine-0.9/vendor/plugins/redmine_subtasks/db/migrate/20090406213813_add_issues_parent_id_lft_and_rgt.rb:4:in
up_without_benchmarks' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:282:insend' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:282:in
migrate' /usr/lib/ruby/1.8/benchmark.rb:293:inmeasure' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:282:in
migrate' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:365:in__send__' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:365:in
migrate' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:486:inmigrate' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:562:in
call' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:562:inddl_transaction' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:485:in
migrate' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:472:ineach' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:472:in
migrate' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:400:inup' /usr/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/migration.rb:383:in
migrate' /var/www/redmine-0.9/vendor/plugins/engines/lib/engines/plugin/migrator.rb:20:inmigrate_plugin' /var/www/redmine-0.9/config/../vendor/plugins/engines/lib/engines/plugin.rb:93:in
migrate' /var/www/redmine-0.9/lib/tasks/migrate_plugins.rake:8 /var/www/redmine-0.9/lib/tasks/migrate_plugins.rake:5:ineach' /var/www/redmine-0.9-stable_b/lib/tasks/migrate_plugins.rake:5 /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
call' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
invoke_with_call_chain' /usr/lib/ruby/1.8/monitor.rb:242:insynchronize' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with_call_chain' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
invoke_task' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
each' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in
run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in
run' /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 /usr/bin/rake:19:in `load' /usr/bin/rake:19Do you have an an advice how to fix this? Thanks a lot.