From: Simon Brandhof Date: Mon, 1 Oct 2012 11:54:48 +0000 (+0200) Subject: SONAR-3833 Fix compatibility with MsSQL and Oracle X-Git-Tag: 3.3~157 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d6cac6a13b02ae53896a359df85f7ee0e32b5ac1;p=sonarqube.git SONAR-3833 Fix compatibility with MsSQL and Oracle --- diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/334_remove_profiles_default_column.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/334_remove_profiles_default_column.rb index 185be1b3a10..6ad81d11457 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/334_remove_profiles_default_column.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/334_remove_profiles_default_column.rb @@ -31,7 +31,7 @@ class RemoveProfilesDefaultColumn < ActiveRecord::Migration end def self.up - Profile.find(:all, :conditions => ['default_profile=true']).each do |profile| + Profile.find(:all, :conditions => ['default_profile=?', true]).each do |profile| Property.create :prop_key => "sonar.profile.#{profile.language}", :text_value => profile.name end