aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src/main/resources/org/sonar/db/property
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2016-04-11 17:01:56 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2016-04-11 17:38:13 +0200
commite21922532e3f0321c038aa40fc219f958fe3b08d (patch)
tree5c041bbc05f8cb6423877367e02c24facb525cd2 /sonar-db/src/main/resources/org/sonar/db/property
parent32d077b6a13018e30fc01b397b23f3e8e34c740a (diff)
downloadsonarqube-e21922532e3f0321c038aa40fc219f958fe3b08d.tar.gz
sonarqube-e21922532e3f0321c038aa40fc219f958fe3b08d.zip
Add PropertiesDao.deleteById
Diffstat (limited to 'sonar-db/src/main/resources/org/sonar/db/property')
-rw-r--r--sonar-db/src/main/resources/org/sonar/db/property/PropertiesMapper.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-db/src/main/resources/org/sonar/db/property/PropertiesMapper.xml b/sonar-db/src/main/resources/org/sonar/db/property/PropertiesMapper.xml
index d36c205772c..afb6f9d5c1d 100644
--- a/sonar-db/src/main/resources/org/sonar/db/property/PropertiesMapper.xml
+++ b/sonar-db/src/main/resources/org/sonar/db/property/PropertiesMapper.xml
@@ -106,6 +106,10 @@
VALUES (#{key}, #{resourceId}, #{userId}, #{value})
</insert>
+ <delete id="deleteById" parameterType="long">
+ delete from properties where id=#{id}
+ </delete>
+
<delete id="deleteProjectProperty" parameterType="map">
delete from properties where prop_key=#{key} and resource_id=#{rId} and user_id is null
</delete>