From: Julien Lancelot Date: Tue, 25 Feb 2014 15:32:50 +0000 (+0100) Subject: SONAR-4996 Add migration to update issue changelog debt to seconds X-Git-Tag: 4.3~694 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a59cb8ce969916281a82a44c603cf5a2948c3e6e;p=sonarqube.git SONAR-4996 Add migration to update issue changelog debt to seconds --- diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/514_update_issue_changelog_debt_to_seconds.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/514_update_issue_changelog_debt_to_seconds.rb new file mode 100644 index 00000000000..20f7d2303da --- /dev/null +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/514_update_issue_changelog_debt_to_seconds.rb @@ -0,0 +1,30 @@ +# +# SonarQube, open source software quality management 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.3 +# SONAR-4996 +# +class UpdateIssueChangelogDebtToSeconds < ActiveRecord::Migration + + def self.up + Java::OrgSonarServerUi::JRubyFacade.getInstance().databaseMigrator().executeMigration('org.sonar.server.db.migrations.debt.IssueChangelogMigration') + end +end