]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4996 Add migration to update issue changelog debt to seconds
authorJulien Lancelot <julien.lancelot@gmail.com>
Tue, 25 Feb 2014 15:32:50 +0000 (16:32 +0100)
committerJulien Lancelot <julien.lancelot@gmail.com>
Tue, 25 Feb 2014 18:04:19 +0000 (19:04 +0100)
sonar-server/src/main/webapp/WEB-INF/db/migrate/514_update_issue_changelog_debt_to_seconds.rb [new file with mode: 0644]

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 (file)
index 0000000..20f7d23
--- /dev/null
@@ -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