diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-04-19 12:49:58 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-04-19 12:49:58 +0200 |
commit | 9936a0250bfa0d484f403a1776e0dfc7a61acdf2 (patch) | |
tree | 25deded4392d3b20688612e63bab04895d437c0b /sonar-server/src/main | |
parent | 104854e399001150622b638e194d732048bbb914 (diff) | |
download | sonarqube-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.rb | 2 |
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 |