]> source.dussan.org Git - sonarqube.git/commit
SONAR-7030 Add migration to update LOADED_TEMPLATES
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 8 Dec 2015 08:47:37 +0000 (09:47 +0100)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Tue, 8 Dec 2015 11:28:13 +0000 (12:28 +0100)
commit1a45e47fdeca85e1884775243187e32ab294c8e3
tree960383843719907102feaffc5342176c31a1d9dd
parentbf3e3086b732f27947b6ad8a1ecd91c70d27632f
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'
server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1006_update_custom_dashboard_in_loaded_templates.rb [new file with mode: 0644]
sonar-db/src/main/java/org/sonar/db/version/DatabaseVersion.java
sonar-db/src/main/java/org/sonar/db/version/MigrationStepModule.java
sonar-db/src/main/java/org/sonar/db/version/v53/UpdateCustomDashboardInLoadedTemplates.java [new file with mode: 0644]
sonar-db/src/main/resources/org/sonar/db/version/rows-h2.sql
sonar-db/src/test/java/org/sonar/db/version/MigrationStepModuleTest.java
sonar-db/src/test/java/org/sonar/db/version/v53/UpdateCustomDashboardInLoadedTemplatesTest.java [new file with mode: 0644]
sonar-db/src/test/resources/org/sonar/db/version/v53/UpdateCustomDashboardInLoadedTemplatesTest/migrate-result.xml [new file with mode: 0644]
sonar-db/src/test/resources/org/sonar/db/version/v53/UpdateCustomDashboardInLoadedTemplatesTest/migrate.xml [new file with mode: 0644]
sonar-db/src/test/resources/org/sonar/db/version/v53/UpdateCustomDashboardInLoadedTemplatesTest/not_migrate_already_migrated_data.xml [new file with mode: 0644]
sonar-db/src/test/resources/org/sonar/db/version/v53/UpdateCustomDashboardInLoadedTemplatesTest/schema.sql [new file with mode: 0644]