summaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-04-19 12:49:58 +0200
committersimonbrandhof <simon.brandhof@gmail.com>2011-04-19 12:49:58 +0200
commit9936a0250bfa0d484f403a1776e0dfc7a61acdf2 (patch)
tree25deded4392d3b20688612e63bab04895d437c0b /sonar-server/src/main
parent104854e399001150622b638e194d732048bbb914 (diff)
downloadsonarqube-9936a0250bfa0d484f403a1776e0dfc7a61acdf2.tar.gz
sonarqube-9936a0250bfa0d484f403a1776e0dfc7a61acdf2.zip
Fix support of SQLServer
Diffstat (limited to 'sonar-server/src/main')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/config/environment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/config/environment.rb b/sonar-server/src/main/webapp/WEB-INF/config/environment.rb
index 2ce9d7254ca..dd9f99e2582 100644
--- a/sonar-server/src/main/webapp/WEB-INF/config/environment.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/config/environment.rb
@@ -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