From: Jacek Date: Tue, 6 Aug 2019 13:57:25 +0000 (+0200) Subject: SONAR-12364 - IT fixes, add uniq new code period table constraint X-Git-Tag: 8.0~97 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=099e2173f49793d0814c034300983e6a030a1116;p=sonarqube.git SONAR-12364 - IT fixes, add uniq new code period table constraint --- diff --git a/server/sonar-db-dao/src/main/resources/org/sonar/db/newcodeperiod/NewCodePeriodMapper.xml b/server/sonar-db-dao/src/main/resources/org/sonar/db/newcodeperiod/NewCodePeriodMapper.xml index fbd85860878..17371e37d22 100644 --- a/server/sonar-db-dao/src/main/resources/org/sonar/db/newcodeperiod/NewCodePeriodMapper.xml +++ b/server/sonar-db-dao/src/main/resources/org/sonar/db/newcodeperiod/NewCodePeriodMapper.xml @@ -52,6 +52,10 @@ updated_at=#{updatedAt, jdbcType=TIMESTAMP} WHERE uuid=#{uuid, jdbcType=VARCHAR} + OR + (project_uuid=#{projectUuid, jdbcType=VARCHAR} + AND + branch_uuid=#{branchUuid, jdbcType=VARCHAR})