Hauleth/redmine_contacts — Issue #1: Uninstalling fails
Author: blurmonk
Created: 2011-10-13 23:39:39+00:00
State: open

Hi

When I try to uninstall this plugin this is the error I am getting

Migrating redmine_contacts to version 0 ...
== CreateContactsProjects: reverting =========================================
-- drop_table(:contacts_projects)
rake aborted!
An error has occurred, all later migrations canceled:

Mysql::Error: Unknown table 'contacts_projects': DROP TABLE `contacts_projects`

(See full trace by running task with --trace)

-with trace

(in /var/www/redmine_manual)
** Invoke db:migrate:plugin (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate:plugin
Migrating redmine_contacts to version 0 ...
== CreateContactsProjects: reverting =========================================
-- drop_table(:contacts_projects)
rake aborted!
An error has occurred, all later migrations canceled:

Mysql::Error: Unknown table 'contacts_projects': DROP TABLE `contacts_projects`
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:227:in `log'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:324:in `execute'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb:182:in `drop_table'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:447:in `drop_table'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:352:in `send'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:352:in `method_missing'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:328:in `say_with_time'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:328:in `say_with_time'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:348:in `method_missing'
/var/www/redmine_manual/vendor/plugins/redmine_contacts/db/migrate/019_create_contacts_projects.rb:14:in `down_without_benchmarks'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:282:in `send'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:282:in `migrate'
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:282:in `migrate'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:365:in `__send__'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:365:in `migrate'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:491:in `migrate'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:567:in `call'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:567:in `ddl_transaction'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:490:in `migrate'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:477:in `each'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:477:in `migrate'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:405:in `down'
/var/www/redmine_manual/vendor/rails/activerecord/lib/active_record/migration.rb:385:in `migrate'
/var/www/redmine_manual/vendor/plugins/engines/lib/engines/plugin/migrator.rb:20:in `migrate_plugin'
/var/www/redmine_manual/config/../vendor/plugins/engines/lib/engines/plugin.rb:93:in `migrate'
/var/www/redmine_manual/vendor/plugins/engines/lib/tasks/engines.rake:127
/usr/lib/ruby/1.8/rake.rb:636:in `call'
/usr/lib/ruby/1.8/rake.rb:636:in `execute'
/usr/lib/ruby/1.8/rake.rb:631:in `each'
/usr/lib/ruby/1.8/rake.rb:631:in `execute'
/usr/lib/ruby/1.8/rake.rb:597:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib/ruby/1.8/rake.rb:590:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:583:in `invoke'
/usr/lib/ruby/1.8/rake.rb:2051:in `invoke_task'
/usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2029:in `each'
/usr/lib/ruby/1.8/rake.rb:2029:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:2023:in `top_level'
/usr/lib/ruby/1.8/rake.rb:2001:in `run'
/usr/lib/ruby/1.8/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1998:in `run'
/usr/bin/rake:28