From f04225c5e377a2d928099d0c43936d689a649318 Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Thu, 23 Dec 2010 16:40:38 +0000 Subject: [PATCH] bug-fix : hotspot and drilldown pages fail if the server is not restarted after db upgrade --- .../WEB-INF/db/migrate/161_add_snapshots_period_columns.rb | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5