When I updated search_api from 7.x-1.14 to 7.x-1.16, I couldn't completed the database update.

The warning is:

Table search_api_item_string_id already exists.

and this database update task doesn't go away.

Comments

skyredwang created an issue. See original summary.

drunken monkey’s picture

Category: Bug report » Support request

Try commenting out all code in that update function before running the update, or manually increasing the module's schema version in the system table by 1.

k2gsalem’s picture

Rename the table name search_api_item_string_id to search_api_item_string_id1 or delete the search_api_item_string_id table
after update the database script.

mikhailkrainiuk’s picture

Status: Active » Needs review
StatusFileSize
new437 bytes

Hello,

I fixed it with the patch: I check that the table exists.
Could you check this patch?

mikhailkrainiuk’s picture

StatusFileSize
new437 bytes

Sorry, I skipped description in patch name.
Fixed.

drunken monkey’s picture

Status: Needs review » Fixed

I'm still unsure what could cause this problem, but I guess that workaround won't hurt in any case.
So, committed (after re-arranging the code a bit). Thanks!

Status: Fixed » Closed (fixed)

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