aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-db/src/main/resources/org/sonar
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-10-18 18:15:39 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-10-20 17:17:54 +0200
commit5d21ae8d7ff15fe76833159f880bd134710434b9 (patch)
treeba0fb2086826e1b88cc69c884d8ad54e7f1aaecd /sonar-db/src/main/resources/org/sonar
parentc51c4e9b3ebfbfd6a526c58291bd50ef95faa914 (diff)
downloadsonarqube-5d21ae8d7ff15fe76833159f880bd134710434b9.tar.gz
sonarqube-5d21ae8d7ff15fe76833159f880bd134710434b9.zip
SONAR-8100 add GroupDao#deleteByOrganization
Diffstat (limited to 'sonar-db/src/main/resources/org/sonar')
-rw-r--r--sonar-db/src/main/resources/org/sonar/db/user/GroupMapper.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/sonar-db/src/main/resources/org/sonar/db/user/GroupMapper.xml b/sonar-db/src/main/resources/org/sonar/db/user/GroupMapper.xml
index 45d71a4d7b6..bc74e334d7e 100644
--- a/sonar-db/src/main/resources/org/sonar/db/user/GroupMapper.xml
+++ b/sonar-db/src/main/resources/org/sonar/db/user/GroupMapper.xml
@@ -46,6 +46,13 @@
</where>
</delete>
+ <delete id="deleteByOrganization" parameterType="String">
+ delete from
+ groups
+ where
+ organization_uuid=#{organizationUuid,jdbcType=VARCHAR}
+ </delete>
+
<select id="selectByUserLogin" parameterType="string" resultType="Group">
select
<include refid="groupColumns"/>