kanzie / Redmine-PDM

A document-revision plugin for redmine
Other
7 stars 1 forks source link

unable to install other plugins when pdm_redmine is installed. #9

Open acke opened 13 years ago

acke commented 13 years ago

sudo rake db:migrate_plugins RAILS_ENV=production (in /var/www/redmine-1.0.4) Migrating engines... Migrating acts_as_activity_provider... Migrating acts_as_attachable... Migrating acts_as_customizable... Migrating acts_as_event... Migrating acts_as_list... Migrating acts_as_searchable... Migrating acts_as_tree... Migrating acts_as_versioned... Migrating acts_as_watchable... Migrating awesome_nested_set... Migrating classic_pagination... Migrating coderay-0.9.2... Migrating gravatar... Migrating open_id_authentication... Migrating prepend_engine_views... Migrating redmine_importer... Migrating redmine_pdm... == CreatePdmRevisions: migrating ============================================= -- create_table(:pdm_revisions) rake aborted! An error has occurred, all later migrations canceled:

Mysql::Error: Table 'pdm_revisions' already exists: CREATE TABLE pdm_revisions (id int(11) DEFAULT NULL auto_increment PRIMARY KEY, commit_message varchar(255), created_by varchar(255), created_date datetime, pdm_document_id int) ENGINE=InnoDB

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

kanzie commented 13 years ago

It seems you have already been able to run as far as the db:create for the tables of the plugin. Installs dont roll-back when they fail so you might want to reset the db and then it should work or just manually drop the pdb_* tables.

I believe the db:migrate:reset should do it but you might want to double-check that it resets the plugins and not the db as a whole. I dont remember off the top of my head.

acke commented 13 years ago

So the issue is not with installing PDM, but when installing the an other plugin after PDM is installed. To reproduce: Install Readmine-PDM Install easy_agile

During the install of easy_agile these errors occur. They do not occur if Redmine-PDM is removed before installing easy_agile (https://github.com/SphereConsultingInc/easy_agile).