Fixes: #8998 Apparently some databases don't throw a proper code to identify a `DuplicateKeyException`, so better to catch `DataIntegrityViolationException` with the same meaning. **Auto-cherry-pick to `6.2.x` & `6.1.x`**
Fixes: #8998 Apparently some databases don't throw a proper code to identify a `DuplicateKeyException`, so better to catch `DataIntegrityViolationException` with the same meaning. **Auto-cherry-pick to `6.2.x` & `6.1.x`**