aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-09-17 18:14:59 +0200
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-09-18 15:35:03 +0200
commitf1fe6abd05f4e619c67043d0b76d452bcb812347 (patch)
treec7be0305f58171e1f93d192b06bc19286051ffc9 /server/sonar-web
parent21f0481e9ffd9c9130c58e7331f3dfad8f40b9da (diff)
downloadsonarqube-f1fe6abd05f4e619c67043d0b76d452bcb812347.tar.gz
sonarqube-f1fe6abd05f4e619c67043d0b76d452bcb812347.zip
SONAR-6840 Group migrations touching same table
Migrations that are done on the same table are now executed with only one SQL query
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/db/migrate/931_increase_precision_of_numerics.rb (renamed from server/sonar-web/src/main/webapp/WEB-INF/db/migrate/928_increase_precision_of_numerics.rb)10
1 files changed, 1 insertions, 9 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/931_increase_precision_of_numerics.rb
index cf8874fcb05..aa86563db8f 100644
--- 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/931_increase_precision_of_numerics.rb
@@ -25,15 +25,7 @@
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
+ execute_java_migration('org.sonar.db.version.v52.IncreasePrecisionOfNumerics')
end
end