diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-12-13 17:34:51 +0100 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-12-14 16:46:35 +0100 |
commit | b34f03299ce0849cc832467a0ab4073c01e1d6b2 (patch) | |
tree | 1c6afaab510c383ebd22958acf810e567ac2d541 /sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml | |
parent | 31a1326c4edd38fafea520e0e35f50f7e30ccaf5 (diff) | |
download | sonarqube-b34f03299ce0849cc832467a0ab4073c01e1d6b2.tar.gz sonarqube-b34f03299ce0849cc832467a0ab4073c01e1d6b2.zip |
SONAR-8468 Create WS api/project_analyses/delete
Diffstat (limited to 'sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml')
-rw-r--r-- | sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml b/sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml index b27c1e31abf..102c9497a51 100644 --- a/sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml +++ b/sonar-db/src/main/resources/org/sonar/db/component/SnapshotMapper.xml @@ -177,10 +177,11 @@ where uuid = #{analysisUuid} </update> - <update id="updateVersion" parameterType="map"> + <update id="update" parameterType="Snapshot"> update snapshots - set version = #{version, jdbcType=VARCHAR} - where uuid = #{analysisUuid} + set version = #{version, jdbcType=VARCHAR}, + status = #{status, jdbcType=VARCHAR} + where uuid = #{uuid} </update> <insert id="insert" parameterType="Snapshot" keyColumn="id" useGeneratedKeys="true" keyProperty="id"> |