aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-migration
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2019-07-01 17:49:24 +0200
committersonartech <sonartech@sonarsource.com>2019-07-10 08:36:53 +0200
commit421174b8456db3bd16471e636a79a0cf997c02ad (patch)
treed1a18a42a4a2d956eb042bbf9c61d4b81af0f50d /server/sonar-db-migration
parentbdc898f9220f48b5589bf01ef32a5194d8b28dce (diff)
downloadsonarqube-421174b8456db3bd16471e636a79a0cf997c02ad.tar.gz
sonarqube-421174b8456db3bd16471e636a79a0cf997c02ad.zip
SONAR-12260 fix failing DeleteFileMeasures on MsSQL
Diffstat (limited to 'server/sonar-db-migration')
-rw-r--r--server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v70/DeleteFileMeasures.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v70/DeleteFileMeasures.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v70/DeleteFileMeasures.java
index 58861ab22e6..3ca285aee16 100644
--- a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v70/DeleteFileMeasures.java
+++ b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v70/DeleteFileMeasures.java
@@ -35,7 +35,7 @@ public class DeleteFileMeasures extends DataChange {
MassUpdate massUpdate = context.prepareMassUpdate();
massUpdate.select("select c.uuid from projects c where c.qualifier = 'UTS' or c.qualifier = 'FIL'");
massUpdate.rowPluralName("files");
- massUpdate.update("delete from project_measures pm where pm.component_uuid=?")
+ massUpdate.update("delete from project_measures where component_uuid=?")
.setBatchSize(10);
massUpdate.execute((row, update) -> {