aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/webapp
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2015-12-08 09:47:37 +0100
committerJulien Lancelot <julien.lancelot@sonarsource.com>2015-12-08 12:28:13 +0100
commit1a45e47fdeca85e1884775243187e32ab294c8e3 (patch)
tree960383843719907102feaffc5342176c31a1d9dd /server/sonar-web/src/main/webapp
parentbf3e3086b732f27947b6ad8a1ecd91c70d27632f (diff)
downloadsonarqube-1a45e47fdeca85e1884775243187e32ab294c8e3.tar.gz
sonarqube-1a45e47fdeca85e1884775243187e32ab294c8e3.zip
SONAR-7030 Add migration to update LOADED_TEMPLATES
In order to not have 2 default dashboards 'Custom', the entry in LOADED_TEMPLATES is renamed from the old name 'Dashboard' to the new one 'Custom'
Diffstat (limited to 'server/sonar-web/src/main/webapp')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1006_update_custom_dashboard_in_loaded_templates.rb33
1 files changed, 33 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1006_update_custom_dashboard_in_loaded_templates.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1006_update_custom_dashboard_in_loaded_templates.rb
new file mode 100644
index 00000000000..a0cb8296803
--- /dev/null
+++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1006_update_custom_dashboard_in_loaded_templates.rb
@@ -0,0 +1,33 @@
+#
+# SonarQube, open source software quality management tool.
+# Copyright (C) 2008-2014 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.
+#
+
+#
+# SonarQube 5.3
+# SONAR-7030
+#
+class UpdateCustomDashboardInLoadedTemplates < ActiveRecord::Migration
+
+ def self.up
+ execute_java_migration('org.sonar.db.version.v53.UpdateCustomDashboardInLoadedTemplates')
+ end
+
+end
+
+