Zend certified PHP/Magento developer

How to fix issue when run Magento update command?

I changed php version and composer version.But run command “bin/magento setup:upgrade”, display error like this.

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '584362' for key 'PRIMARY', query was: ALTER TABLE `catalog_url_rewrite_product_category` ADD CONSTRAINT  PRIMARY KEY (`url_rewrite_id`)