ZoroXing / r-labs

Automatically exported from code.google.com/p/r-labs
0 stars 0 forks source link

rake db:migrate_plugins attempts to always create the table #25

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I previously had Redmine 0.8.7 with 0.2.9.2 of your plugin installed. I've
upgraded to Redmine 0.9.3 and in the process upgraded my plugins. Now
whenever I run rake db:migrate_plugins I get the following:

Migrating redmine_code_review...
==  CreateCodeReviews: migrating ==============================================
-- create_table(:code_reviews)
rake aborted!
An error has occurred, all later migrations canceled:

Mysql::Error: Table 'code_reviews' already exists: CREATE TABLE
`code_reviews` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY,
`project_id` int(11), `parent_id` int(11), `change_id` int(11),
`created_at` datetime, `updated_at` datetime, `user_id` int(11), `comment`
text, `status` int(11), `line` int(11)) ENGINE=InnoDB

Not really sure how to fix this.

Original issue reported on code.google.com by douglas....@gmail.com on 4 Apr 2010 at 1:05

GoogleCodeExporter commented 8 years ago
Hi

I think you forgot the following command.

 rake db:migrate:upgrade_plugin_migrations RAILS_ENV=production 

See 
http://www.redmine.org/wiki/redmine/RedmineUpgrade#Step-4-Update-the-database

Original comment by haru.ii.a9i1e on 4 Apr 2010 at 10:40

GoogleCodeExporter commented 8 years ago
Ah. I'm sorry. My stupidity for not reading the instructions closely enough. 
Please
feel free to close this out. Thanks for your help.

Original comment by douglas....@gmail.com on 8 Apr 2010 at 6:02

GoogleCodeExporter commented 8 years ago
Hi Douglas.

I'm glad to solve your problem. 

Regards.

Original comment by haru.ii.a9i1e on 8 Apr 2010 at 1:43