After installing Twitter and Oath, and run database, I have got the following error:

Update #7402

Failed: DatabaseSchemaObjectDoesNotExistException: Cannot change the definition of field twitter_account.import: field doesn't exist. in DatabaseSchema_mysql->changeField() (line 454 of /home3/mydomain/public_html/mysite/includes/database/mysql/schema.inc).

Please help.

CommentFileSizeAuthor
#1 import_field-1976734-1.patch462 bytesdeciphered

Comments

deciphered’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new462 bytes

I've also experience this issue when upgrade from Twitter 6.x-5.0. The update in question is trying to update a field that was never added in the upgrade path.

Simple fix attached, but the question is are there other changes that have also been missed?

damienmckenna’s picture

Version: 7.x-5.6 » 7.x-5.x-dev
damienmckenna’s picture

Status: Needs review » Needs work

Triggering the testbot.

damienmckenna’s picture

Status: Needs work » Needs review

Triggering the testbot.

damienmckenna’s picture

Category: Task » Bug report

I'm confused. Did you have an older version of the twitter module installed before? Do you have any idea what version was there previously? That definitely shouldn't happen but I'm at a loss for what scenario would cause it.

deciphered’s picture

According to my comment, I was upgrading from 6.x-5.0. Any more than that I can not remember.

damienmckenna’s picture

@Deciphered: Thanks. The weird thing is that {twitter_account}.import is added in twitter_update_6300, so your site should have had it already.

I guess we might need a twitter_update_7000 to go through the schema and verify everything exists correctly.

damienmckenna’s picture

Status: Needs review » Needs work