aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-12-10 21:26:06 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-12-10 21:26:06 +0000
commitdad95d1c68b191e04783306943c548e0908658e2 (patch)
tree83890eefcb5299717b727c59e0ae55ac319bd7bd
parentd4faa4b6767b2b23652cf479307124010545a8d9 (diff)
downloadsonarqube-dad95d1c68b191e04783306943c548e0908658e2.tar.gz
sonarqube-dad95d1c68b191e04783306943c548e0908658e2.zip
fix db script to avoid restarting sonar
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/168_add_variations_to_filters.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/168_add_variations_to_filters.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/168_add_variations_to_filters.rb
index f55f55cc1f7..905407fad79 100644
--- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/168_add_variations_to_filters.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/168_add_variations_to_filters.rb
@@ -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