diff --git a/api/source/service/mysql/ReviewService.js b/api/source/service/mysql/ReviewService.js index 897d0089f..bd2b9c9ec 100644 --- a/api/source/service/mysql/ReviewService.js +++ b/api/source/service/mysql/ReviewService.js @@ -614,9 +614,10 @@ const writeQueries = { autoResult json, statusId int, statusText varchar(255), - PRIMARY KEY (ruleId) + PRIMARY KEY (ruleId), + UNIQUE KEY (\`version\`, checkDigest) ) - SELECT + REPLACE SELECT jt.ruleId, jtrvcd.version, jtrvcd.checkDigest,