aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-migration
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2021-11-04 12:31:03 +0100
committersonartech <sonartech@sonarsource.com>2021-11-04 20:03:25 +0000
commite8f806e2ce3766bca10f21209de5b43f749b5ee0 (patch)
tree1d3849515ae1d817609ed334ee7ecc9745fc04cc /server/sonar-db-migration
parent873ce42305a4f53449065bb085732fbcb9b071ec (diff)
downloadsonarqube-e8f806e2ce3766bca10f21209de5b43f749b5ee0.tar.gz
sonarqube-e8f806e2ce3766bca10f21209de5b43f749b5ee0.zip
SONAR-15587 - Change DB Migration for sonarlint_ad_seen
Diffstat (limited to 'server/sonar-db-migration')
-rw-r--r--server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v92/UpsertSonarlintAdSeenValue.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v92/UpsertSonarlintAdSeenValue.java b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v92/UpsertSonarlintAdSeenValue.java
index cb1e72c3621..57de8b600e7 100644
--- a/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v92/UpsertSonarlintAdSeenValue.java
+++ b/server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/version/v92/UpsertSonarlintAdSeenValue.java
@@ -32,7 +32,9 @@ public class UpsertSonarlintAdSeenValue extends DataChange {
@Override
protected void execute(Context context) throws SQLException {
- Upsert upsert = context.prepareUpsert("update users set sonarlint_ad_seen = true where last_sonarlint_connection is not null");
+ Upsert upsert = context.prepareUpsert("update users set sonarlint_ad_seen = ? where last_sonarlint_connection is not null");
+ upsert
+ .setBoolean(1, true);
upsert.execute();
upsert.commit();
}