]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3833 Fix compatibility with MsSQL and Oracle
authorSimon Brandhof <simon.brandhof@gmail.com>
Mon, 1 Oct 2012 11:54:48 +0000 (13:54 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Mon, 1 Oct 2012 11:54:48 +0000 (13:54 +0200)
sonar-server/src/main/webapp/WEB-INF/db/migrate/334_remove_profiles_default_column.rb

index 185be1b3a10cd934728af75a4cf9774e0f8da9cb..6ad81d11457c1215105e9a393e67bb15697e7687 100644 (file)
@@ -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