diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2021-11-04 12:31:03 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-11-04 20:03:25 +0000 |
commit | e8f806e2ce3766bca10f21209de5b43f749b5ee0 (patch) | |
tree | 1d3849515ae1d817609ed334ee7ecc9745fc04cc /server/sonar-db-migration | |
parent | 873ce42305a4f53449065bb085732fbcb9b071ec (diff) | |
download | sonarqube-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.java | 4 |
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(); } |