aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-core/src
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2018-08-30 16:58:58 +0200
committerSonarTech <sonartech@sonarsource.com>2018-08-30 20:22:23 +0200
commit61b01c89dfbe4bae2afc5e92c14cb9781b0ff011 (patch)
treeb9a524d42d264fd21723b260c9932f980c17ad96 /server/sonar-db-core/src
parent1d2eb3b5ac8a23c5c4aa1b1ede5ce3f24840ce8a (diff)
downloadsonarqube-61b01c89dfbe4bae2afc5e92c14cb9781b0ff011.tar.gz
sonarqube-61b01c89dfbe4bae2afc5e92c14cb9781b0ff011.zip
Delete webhooks and webhook deliveries only once (#667)
- Deletion were done at 3 places when deleting an organization : -- In the api/organization/delete WS -- In component cleaner -- In PurgeDao - Moreover, the deletion of webhook deliveries in the last 2 classes were not done by project, but by selecting all webhook deliveries of the project and deleting them one by one
Diffstat (limited to 'server/sonar-db-core/src')
-rw-r--r--server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java b/server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java
index 18b68506d10..dfb19a480f4 100644
--- a/server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java
+++ b/server/sonar-db-core/src/main/java/org/sonar/db/version/SqTables.java
@@ -107,6 +107,7 @@ public final class SqTables {
"users",
"user_roles",
"user_tokens",
+ "webhooks",
"webhook_deliveries")));
private SqTables() {