]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8058 fix DB migration of views definition (wrong key) 1229/head
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 9 Sep 2016 13:06:30 +0000 (15:06 +0200)
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>
Fri, 9 Sep 2016 13:54:42 +0000 (15:54 +0200)
sonar-db/src/main/java/org/sonar/db/version/v61/RemoveViewsDefinitionFromProperties.java
sonar-db/src/test/java/org/sonar/db/version/v61/RemoveViewsDefinitionFromPropertiesTest.java

index 389a5f7666e7c7cba3bb6fa2306145e16101a4bc..83efeb5aeac65ee34be578e75f9434753d950e24 100644 (file)
@@ -64,7 +64,7 @@ public class RemoveViewsDefinitionFromProperties extends BaseDataChange {
         " (?,?,?,?)")) {
         long now = system2.now();
         insert
-          .setString(1, "xmlDefinition")
+          .setString(1, "views.def")
           .setBoolean(2, false)
           .setString(3, property)
           .setLong(4, now)
index cb5a713705a19381be218cec2c6a49e0d776389c..bcabb800230fbae6462b8f1249ce486a8d63f402 100644 (file)
@@ -77,7 +77,7 @@ public class RemoveViewsDefinitionFromPropertiesTest {
     Map<String, Object> internalProp = db.selectFirst("select" +
       " kee as \"key\", is_empty as \"isEmpty\", text_value as \"textValue\", clob_value as \"clobValue\", created_at as \"createdAt\"" +
       " from internal_properties");
-    assertThat(internalProp.get("key")).isEqualTo("xmlDefinition");
+    assertThat(internalProp.get("key")).isEqualTo("views.def");
     assertThat(internalProp.get("isEmpty")).isEqualTo(false);
     if (isClob) {
       assertThat(internalProp.get("clobValue")).isEqualTo(xml);