Unfortunately, an error occurs when saving some entries. But with others we can save the entries without any problems.
Integrity constraint violation – [yii\db\IntegrityException](https://www.yiiframework.com/doc-2.0/yii-db-integrityexception.html)
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1329758-1' for key 'revisions_sourceId_num_unq_idx'
The SQL being executed was: INSERT INTO `revisions` (`canonicalId`, `creatorId`, `num`, `notes`) VALUES (1329758, 1325965, 1, NULL)
Error Info: Array
(
[0] => 23000
[1] => 1062
[2] => Duplicate entry '1329758-1' for key 'revisions_sourceId_num_unq_idx'
What happened?
Description
Unfortunately, an error occurs when saving some entries. But with others we can save the entries without any problems.
Steps to reproduce
Craft CMS version
4.7.1
PHP version
8.1
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
No response