]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4736 fix freeze on MSSQL
authorSimon Brandhof <simon.brandhof@gmail.com>
Fri, 4 Oct 2013 12:59:58 +0000 (14:59 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Fri, 4 Oct 2013 13:00:07 +0000 (15:00 +0200)
sonar-server/src/main/webapp/WEB-INF/db/migrate/401_migrate_violations_to_issues.rb

index 480eb03a6968267f7ad3bf6a6e9912371bbcbb5e..f4e0c01c1fccd5515ee708192e90afd8bdd77527 100644 (file)
@@ -29,6 +29,9 @@ class MigrateViolationsToIssues < ActiveRecord::Migration
     remove_index_quietly('rule_failure_rule_id')
     remove_index_quietly('rf_permanent_id')
 
+    # Required for MSSQL to unlock the table RULE_FAILURES
+    ActiveRecord::Base.connection.commit_db_transaction
+
     Java::OrgSonarServerUi::JRubyFacade.getInstance().databaseMigrator().executeMigration('org.sonar.server.db.migrations.violation.ViolationMigration')
 
     # Currently not possible in Java because of Oracle (triggers and sequences must be dropped)