aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-12-06 21:46:46 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-12-06 21:46:46 +0000
commit28c6db6d3104c9f215d605ea7b3ef1f48da025a0 (patch)
tree0ba72a401a6180c8bb01ec6da1bbf1156c73d477
parentbab89dcedc8bb9b70217ff3a4b60b66ce2a9ff72 (diff)
downloadsonarqube-28c6db6d3104c9f215d605ea7b3ef1f48da025a0.tar.gz
sonarqube-28c6db6d3104c9f215d605ea7b3ef1f48da025a0.zip
fix db script for derby
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/163_add_measure_variation_values.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/163_add_measure_variation_values.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/163_add_measure_variation_values.rb
index 1edc362fe87..385be1745b1 100644
--- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/163_add_measure_variation_values.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/163_add_measure_variation_values.rb
@@ -24,9 +24,12 @@
class AddMeasureVariationValues < ActiveRecord::Migration
def self.up
- rename_column :project_measures, :diff_value_1, :variation_value_1
- rename_column :project_measures, :diff_value_2, :variation_value_2
- rename_column :project_measures, :diff_value_3, :variation_value_3
+ remove_column :project_measures, :diff_value_1
+ remove_column :project_measures, :diff_value_2
+ remove_column :project_measures, :diff_value_3
+ add_column(:project_measures, :variation_value_1, :decimal, :null => true, :precision => 30, :scale => 20)
+ add_column(:project_measures, :variation_value_2, :decimal, :null => true, :precision => 30, :scale => 20)
+ add_column(:project_measures, :variation_value_3, :decimal, :null => true, :precision => 30, :scale => 20)
add_column(:project_measures, :variation_value_4, :decimal, :null => true, :precision => 30, :scale => 20)
add_column(:project_measures, :variation_value_5, :decimal, :null => true, :precision => 30, :scale => 20)
end