Updated the metatag module and it gave me this error when updating the database.
The following updates returned messages

metatag module

Update #7029
Failed: DatabaseSchemaObjectExistsException: Cannot add index type_revision to table metatag: index already exists. in DatabaseSchema_mysql->addIndex() (line 437 of /var/www/vhosts/dacc.edu/includes/database/mysql/schema.inc).
How can I fix this?

Comments

michelle’s picture

Check in the module's queue to see if anyone else has reported it. If not, open a support request. What the error is telling you is that it's trying to add an index to a table that already has that index. Whether that is a problem in the module or something with your database, I don't know.

Inky1231’s picture

I figured that about the index but I am not sure I want to mess with the table.

damienmckenna’s picture

Well, that's a weird error, obviously it shouldn't have happened and I'm sorry you've ran into it.

What I suggest is removing the "type_revision" index from the Metatag table, that should let the update script finish.

Please let us know if that resolves the problem for you.

--
Damien McKenna

Inky1231’s picture

Thanks I will let you know ... right now we are recovering our site form another issue, it has been a stressful day!

watanuki’s picture

May I know how you resolve this? I am also encountering this error.

damienmckenna’s picture

Can you please join in the discussion in https://www.drupal.org/node/2665206 so I can help you in more detail? Thanks.

--
Damien McKenna

damienmckenna’s picture

FYI I'm working on a fix for this problem (https://www.drupal.org/node/2665206) and will be sure to get it into the next release.

--
Damien McKenna

Inky1231’s picture

We ended up restoring our site and database from a previous backup due to other issues.