From: simonbrandhof Date: Thu, 23 Dec 2010 16:40:38 +0000 (+0000) Subject: bug-fix : hotspot and drilldown pages fail if the server is not restarted after db... X-Git-Tag: 2.6~232 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f04225c5e377a2d928099d0c43936d689a649318;p=sonarqube.git bug-fix : hotspot and drilldown pages fail if the server is not restarted after db upgrade --- diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/161_add_snapshots_period_columns.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/161_add_snapshots_period_columns.rb index 34783863e6c..9b83bfaaf08 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/161_add_snapshots_period_columns.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/161_add_snapshots_period_columns.rb @@ -45,6 +45,8 @@ class AddSnapshotsPeriodColumns < ActiveRecord::Migration add_period_column('period5_mode', :string, :null => true, :limit => 100) add_period_column('period5_param', :string, :null => true, :limit => 100) add_period_column('period5_date', :datetime, :null => true) + + Snapshot.reset_column_information() end private