giemsky / redmine_carousel

17 stars 9 forks source link

Upgrade Carousel from 1.0.1 to 1.1.0 #12

Closed wmiadmin closed 13 years ago

wmiadmin commented 13 years ago

Hello, Grzegorz. I was very glad to see new features in Carousel 1.1.0 ! Thank you for implementation.

Tried to upgrade:

cd /home/redminebt/redmine-1.2.0/vendor/plugins
mv redmine_carousel/ redmine_carousel_1.0.1
git clone git://github.com/gmiklaszewski/redmine_carousel.git
cd ../../
rake db:migrate_plugins RAILS_ENV=production

and I get the errors:

==  AddBeginAtColumnToCarousels: migrating ====================================
-- add_column(:carousels, :begin_at, :datetime, {:null=>false})
   -> 0.4002s
==  AddBeginAtColumnToCarousels: migrated (0.4017s) ===========================

Migrating redmine_carousel_1.1.0...
==  CreateCarousels: migrating ================================================
-- create_table(:carousels)
rake aborted!
An error has occurred, all later migrations canceled:

Mysql::Error: Table 'carousels' already exists: CREATE TABLE `carousels` (`id` int(11) DEFAULT NULL auto_increment PRIMARY KEY, `name` varchar(255), `project_id` int(11), `period` int(11), `last_run` datetime, `active` tinyint(1) DEFAULT 0, `auto_assign` text) ENGINE=InnoDB

(See full trace by running task with --trace)
touch tmp/restart.txt

And now I see 2 Carousel tabs and can't see my tasks: http://img708.imageshack.us/img708/589/carouselr.png I can't open the second tab. But in db I can see my tasks.

 show tables;

|carousel_issues| |carousels| |carousels_members|

select id,name from carousels;

+----+-------------------------------------------------------------------------------------------------------------------------+ | id | name | +----+-------------------------------------------------------------------------------------------------------------------------+ | 11 | Disable Monty's referral commission | | 12 | Export member emails | | 13 | Weekly Report1 | | 14 | Weekly Report: 1 | +----+-------------------------------------------------------------------------------------------------------------------------+

Tried to downgrade, but with no success. Two tabs remained and migration failed.

Please explain how I can upgrade to version 1.1.0 ?

Thank you.

wmiadmin commented 13 years ago

It is my mistake, sorry

mv redmine_carousel/ redmine_carousel_1.0.1

should be

mv redmine_carousel /var/backup

And now all works. I got the error because in plugins was 2 folders:

redmine_carousel
redmine_carousel_1.1.0