How to fix the «Unique constraint violation found» / «Duplicate entry for key 'AMASTY_PGRID_QTY_SOLD_PRODUCT_ID'» bug in the Amasty's «Extended Product Grid with Editor» module?

See also: