I'm upgrading a site to D7. I get this error when I upgrade:

drush updb

The following updates are pending:

drupalchat module :
7000 -
7001 -

Do you wish to run all pending updates? (y/n): y
Cannot add index <em class="placeholder">uid</em> to table <em class="placeholder">drupalchat_users</em>: index already exists. [error]
Performed update: drupalchat_update_7000 [ok]
Finished performing updates. [ok]
updatedb failed for drupalchat [error]

Setting priority to critical since this don't let you upgrade between versions.

Comments

darklrd’s picture

Looking into it now. Thanks.

darklrd’s picture

Could you please try the latest commit - http://drupalcode.org/project/drupalchat.git/commit/252fa26? Thanks.

darklrd’s picture

Status: Active » Fixed

Marking this as fixed.

edgar saumell’s picture

Status: Fixed » Active

I did. To test it, I dumped the two D6 tables on the D7 ddbb, replaced drupalchat.install and did a drush updb
I got:

No database updates required [success]
Finished performing updates. [ok]

It seems to me that now drupalchat_update_7000() does nothing. Is that correct?

Everything seems ok now. I can access drupalchat/messages and history is there.

darklrd’s picture

Status: Active » Fixed

Yes, that is fine. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Adding code tags to be able to see the error message