]> source.dussan.org Git - sonarqube.git/commitdiff
postgresql : improve type of PROJECT_MEASURES.VARIATION_VALUE columns
authorsimonbrandhof <simon.brandhof@gmail.com>
Sun, 2 Jan 2011 21:12:07 +0000 (21:12 +0000)
committersimonbrandhof <simon.brandhof@gmail.com>
Sun, 2 Jan 2011 21:12:07 +0000 (21:12 +0000)
sonar-server/src/main/webapp/WEB-INF/db/migrate/163_add_variation_columns.rb

index 0b334326ac4039b499f55c71a91e1c67a8397898..00b079eb6f38c693dddeb624dcba98eae7d6734c 100644 (file)
@@ -149,11 +149,11 @@ class AddVariationColumns < ActiveRecord::Migration
        DROP COLUMN diff_value_1,
        DROP COLUMN diff_value_2,
        DROP COLUMN diff_value_3,       
-       ADD variation_value_1 numeric,
-       ADD variation_value_2 numeric,
-       ADD variation_value_3 numeric,
-       ADD variation_value_4 numeric,
-       ADD variation_value_5 numeric')
+       ADD variation_value_1 numeric(30,20),
+       ADD variation_value_2 numeric(30,20),
+       ADD variation_value_3 numeric(30,20),
+       ADD variation_value_4 numeric(30,20),
+       ADD variation_value_5 numeric(30,20)')
        
     execute_ddl('add snapshots columns','ALTER TABLE snapshots 
         ADD period1_mode character varying(100),