]> source.dussan.org Git - sonarqube.git/commitdiff
Fix support of SQLServer
authorsimonbrandhof <simon.brandhof@gmail.com>
Tue, 19 Apr 2011 10:49:58 +0000 (12:49 +0200)
committersimonbrandhof <simon.brandhof@gmail.com>
Tue, 19 Apr 2011 10:49:58 +0000 (12:49 +0200)
sonar-server/src/main/webapp/WEB-INF/config/environment.rb

index 2ce9d7254ca884974cdc1ada7b9582ba964b4d6a..dd9f99e258236f950a73071e2b890e3e4280de09 100644 (file)
@@ -100,7 +100,7 @@ class ActiveRecord::Migration
   end
 
   def self.alter_to_big_integer(tablename, columnname, indexname=nil)
-    dialect = ActiveRecord::Base.configurations[ ENV['RAILS_ENV'] ]["dialect"]
+    dialect = ::Java::OrgSonarServerUi::JRubyFacade.getInstance().getDialect().getActiveRecordDialectCode()
     case dialect
      when "sqlserver"
                execute "DROP INDEX #{indexname} on #{tablename}" if indexname