diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-10-10 11:26:52 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-10-10 17:15:35 +0200 |
commit | c8821470fb7d7c63e4da4da43d0b6cbce30e5595 (patch) | |
tree | 365628bd855d5c279031da8713d15e41f8b28b5c | |
parent | 683fe860290777cc181beb14648126e0fdbe454d (diff) | |
download | sonarqube-c8821470fb7d7c63e4da4da43d0b6cbce30e5595.tar.gz sonarqube-c8821470fb7d7c63e4da4da43d0b6cbce30e5595.zip |
SONAR-4738 New migration script
2 files changed, 36 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java b/sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java index f8c8211981e..198de205dea 100644 --- a/sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java +++ b/sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java @@ -33,7 +33,7 @@ import java.util.List; */ public class DatabaseVersion implements BatchComponent, ServerComponent { - public static final int LAST_VERSION = 442; + public static final int LAST_VERSION = 443; public static enum Status { UP_TO_DATE, REQUIRES_UPGRADE, REQUIRES_DOWNGRADE, FRESH_INSTALL diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/443_rename_widget_sqale_pyramid_to_technical_debt_pyramid.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/443_rename_widget_sqale_pyramid_to_technical_debt_pyramid.rb new file mode 100644 index 00000000000..0f1458dc494 --- /dev/null +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/443_rename_widget_sqale_pyramid_to_technical_debt_pyramid.rb @@ -0,0 +1,35 @@ +# +# Sonar, entreprise quality control tool. +# Copyright (C) 2008-2013 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. +# + +# +# Sonar 4.0 +# SONAR-4738 +# + +class RenameWidgetSqalePyramidToTechnicalDebtPyramid < ActiveRecord::Migration + + class Widget < ActiveRecord::Base + end + + def self.up + Widget.update_all({:widget_key => 'technical_debt_pyramid', :name => 'Technical Debt Pyramid'}, {:widget_key => 'sqalePyramid'}) + end + +end |