Project

General

Profile

[Update to 2.2] Table users wiped out

Added by yoann yoann almost 12 years ago

Hi all,

I just upgraded to the last stable version of redmine and moved the server itself.
I basically used this: http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade

But now, the users database vanished, I mean all its data is gone - the table is almost empty - 2 users are there admin and anonymous. Is that normal?
Is there a way to get them back?

Thanks,
Yoann


Replies (2)

RE: [Update to 2.2] Table users wiped out - Added by Jan Niggemann (redmine.org team member) almost 12 years ago

Roll back last migration: rake db:rollback
Roll back last migration and try again: rake db:migrate:redo

Is everything else OK? Than you can probably use your backup to get the users back.

RE: [Update to 2.2] Table users wiped out - Added by yoann yoann almost 12 years ago

Hi Jan,

Perfect, that did the trick! I can log in, my users are in the db.
I have not tested everything yet, but if there are any other problems (which I hope not), I will be sure to come back here.

Also, just a note for others, those 2 commands, I had to use with "RAILS_ENV=production". Probably normal for others, wasn't for me.

Thanks a lot,
Yoann

    (1-2/2)