We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

updating EE2 to EE3, script error: Integrity constraint violation 1062 Duplicate entry

How Do I?

chris thacker's avatar
chris thacker
119 posts
4 years ago
chris thacker's avatar chris thacker

I’m trying to update an EE v2 site to v3, eventually going to v6.

It gave this error after running the 3.0.6 update script.

Error While Updating 3.0.6 to 3.5.17 Stopped | Step 2 of 3
Oops, there was an error
An unexpected error occurred while performing the update

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'chargpoint' for key 'PRIMARY':
ALTER TABLE exp_super_search_terms CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci

I saw a different but similar error elsewhere it mentioned this as the possible cause:

“Mysql throws this error because the field type of the auto increment field is not large enough to hold the next value, so it tries to wraps the count back to ’0′ where the is already a record with that value.”

What could be the cause, and the solution?

       
chris thacker's avatar
chris thacker
119 posts
4 years ago
chris thacker's avatar chris thacker

It turns out the the table in question was created by an extension (Super Search) that is not compatible with EE3+. I restored the db, uninstalled that extension, and then the update script got past that step and completed.

? 1
       
Aidan Ansell's avatar
Aidan Ansell
3 posts
4 years ago
Aidan Ansell's avatar Aidan Ansell

helpful advice, thanks!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.