If I Upgrade Magento from 2.1.8 to 2.2.2 and run
setup:upgrade I get the following error:
SQLSTATE: Integrity constraint violation: 1062 Duplicate entry '0-0-0-0' for key 'PRIMARY', query was: INSERT INTO `salesrule_product_attribute` () VALUES ()
If I truncate all salesrule tables it works, but I can't do this on a production environment. Is there any workaround for this issue?