0

This error appears on setup upgrade

| SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'Cp_WishlistApi' for key 'PRIMARY', query was: INSERT INTO `setup_module` (`module`, `schema_version`) VALUES (?, ?)
0

please clear the cache and run the command php bin/magento setup:upgrade

1
  • done still same error
    – devmage
    Jun 19 '20 at 10:46
0

It says there's already a row with 'Cp_WishlistApi' module value.

So, you can try removing it;

DELETE FROM setup_module WHERE module='Cp_WishlistApi'

and

bin/magento setup:upgrade

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.