]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4470 fix migration on SQLServer
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 4 Jul 2013 19:16:51 +0000 (21:16 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 4 Jul 2013 19:16:51 +0000 (21:16 +0200)
sonar-server/src/main/java/org/sonar/server/db/migrations/ConvertViolationsToIssues.java

index d289ba79c52aa2d6e9ac533f428e33f6ec857b4f..b134a17adebd69c2e7472044d141335c502b2d9f 100644 (file)
@@ -67,8 +67,9 @@ public class ConvertViolationsToIssues implements DatabaseMigration {
   }
 
   private void truncateIssueTables(Connection writeConnection) throws SQLException {
-    runner.update(writeConnection, "TRUNCATE TABLE ISSUES");
-    runner.update(writeConnection, "TRUNCATE TABLE ISSUE_CHANGES");
+    // lower-case table names for SQLServer....
+    runner.update(writeConnection, "TRUNCATE TABLE issues");
+    runner.update(writeConnection, "TRUNCATE TABLE issue_changes");
     writeConnection.commit();
   }