diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-08 15:16:19 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-09-09 09:46:36 +0200 |
commit | 9309b09ba2dedf09df270ec6f64a3ff5b6160cd6 (patch) | |
tree | c95b9be2b65d9b78265fa7201f1e73293c233358 /server | |
parent | b3101c1575b89000737c854abf87631f1ec22a6f (diff) | |
download | sonarqube-9309b09ba2dedf09df270ec6f64a3ff5b6160cd6.tar.gz sonarqube-9309b09ba2dedf09df270ec6f64a3ff5b6160cd6.zip |
SONAR-6840 Allow measure values of integers with more than 10 digits in database
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/db/migrate/928_increase_precision_of_numerics.rb | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/928_increase_precision_of_numerics.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/928_increase_precision_of_numerics.rb new file mode 100644 index 00000000000..cf8874fcb05 --- /dev/null +++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/928_increase_precision_of_numerics.rb @@ -0,0 +1,39 @@ +# +# SonarQube, open source software quality management tool. +# Copyright (C) 2008-2014 SonarSource +# mailto:contact AT sonarsource DOT com +# +# SonarQube is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 3 of the License, or (at your option) any later version. +# +# SonarQube is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public License +# along with this program; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +# + +# +# SonarQube 5.2 +# SONAR-6710 +# +class IncreasePrecisionOfNumerics < ActiveRecord::Migration + + def self.up + change_column :metrics, :worst_value, :decimal, :null => true, :precision => 30, :scale => 5 + change_column :metrics, :best_value, :decimal, :null => true, :precision => 30, :scale => 5 + change_column :project_measures, :value, :decimal, :null => true, :precision => 30, :scale => 5 + change_column :project_measures, :variation_value_1, :decimal, :null => true, :precision => 30, :scale => 5 + change_column :project_measures, :variation_value_2, :decimal, :null => true, :precision => 30, :scale => 5 + change_column :project_measures, :variation_value_3, :decimal, :null => true, :precision => 30, :scale => 5 + change_column :project_measures, :variation_value_4, :decimal, :null => true, :precision => 30, :scale => 5 + change_column :project_measures, :variation_value_5, :decimal, :null => true, :precision => 30, :scale => 5 + change_column :manual_measures, :value, :decimal, :null => true, :precision => 30, :scale => 5 + end + +end |