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 (?, ?)

2 Answers 2

0

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

1
  • done still same error
    – devmage
    Commented Jun 19, 2020 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 and acknowledge you have read our privacy policy.

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