From: simonbrandhof Date: Sun, 2 Jan 2011 21:12:07 +0000 (+0000) Subject: postgresql : improve type of PROJECT_MEASURES.VARIATION_VALUE columns X-Git-Tag: 2.6~209 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=45ca565a024913acfee4459ba51b31fdb4e9e531;p=sonarqube.git postgresql : improve type of PROJECT_MEASURES.VARIATION_VALUE columns --- diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/163_add_variation_columns.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/163_add_variation_columns.rb index 0b334326ac4..00b079eb6f3 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/163_add_variation_columns.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/163_add_variation_columns.rb @@ -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),