]> source.dussan.org Git - sonarqube.git/commitdiff
fix db script to avoid restarting sonar
authorsimonbrandhof <simon.brandhof@gmail.com>
Fri, 10 Dec 2010 21:26:06 +0000 (21:26 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Fri, 10 Dec 2010 21:26:06 +0000 (21:26 +0000)
sonar-server/src/main/webapp/WEB-INF/db/migrate/168_add_variations_to_filters.rb

index f55f55cc1f7064466d31fad45f339992033dc842..905407fad79d79323507e4523a1d5682f88d503e 100644 (file)
@@ -25,8 +25,13 @@ class AddVariationsToFilters < ActiveRecord::Migration
 
   def self.up
     add_column :filters, :variation_index, :integer, :null => true
+    Filter.reset_column_information
+
     add_column :filter_columns, :variation, :boolean, :null => true
+    FilterColumn.reset_column_information
+
     add_column :criteria, :variation, :boolean, :null => true
+    Criterion.reset_column_information
   end
 
 end